important

08/30/2015 15:39 boy15#1
suppose there is harddis drive that contain of 3 partitions c,d & e

I want search file that called games.txt in that partitions.

I need command that say
if search =0 not found in all partitions then show message

this pc does not contain games file
08/30/2015 16:43 alpines#2
And whats so hard on selecting a good topic name for that? "important" doesn't give a single clue about what you want to do.

Also the task you described is on basic AutoIt level. You should manage to do it yourself if you've learned the basics. Search _FileListToArray in the documentation.
08/31/2015 17:49 mlukac89#3
Try this

Code:
#include <Array.au3>
#include <File.au3>
#include <AutoItConstants.au3>

Global $DT_ALL = "ALL", $aArray = DriveGetDrive($DT_ALL), $file = "test.txt"

If @error Then
    ; An error occurred when retrieving the drives.
    MsgBox(0, "Error retrieving the drives", "Error : " & @error & ", Extended : " & @extended)
Else
    For $i = 1 To $aArray[0]

        $aFileList = _FileListToArrayRec($aArray[$i] & "\", $file, $FLTAR_FILES, $FLTAR_RECUR, $FLTAR_NOSORT, $FLTAR_FULLPATH)

        If Not @error Then
            _ArrayDisplay($aFileList, "FileList for " & $aArray[$i])
        EndIf



    Next

EndIf