There is no fixed order. It returns them in the order DOS DIR command returns files when it is run without any additional options. If you want to process files in a order they were created you can call FileGetDate and FileGetTime for each file to get the file time then do some sorting. Alternatively you can use RunAndWait "CMD /C DIR /b /od > file_list.txt", "", 0, pid to have the DOS DIR command do all the work for you then read the list using FileReadAll "file_list.txt", my_variable FileDelete "file_list.txt" : Hi, : In what order does the above statements return the files that it found. : I need to be able to process the file in a directory in the order that they : were created. : Can one make sure that the files are return in the order that they were : created? : Regards, : Drake
|