SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
FileFindFirst - FileFindNext

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
FileFindFirst - FileFindNext
Author Message
Drake



Joined: 07 Jan 2003
Posts: 7

Post FileFindFirst - FileFindNext Reply with quote

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

Fri Mar 14, 2003 2:57 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7966

Post Re: FileFindFirst - FileFindNext Reply with quote

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

Fri Mar 14, 2003 9:21 am View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.