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