herworth 0 Posted January 19, 2005 That's it really. Does it return files in date order or perhaps alphabetical by name or some other method? If you have, say, 10 files in a folder which one will be last? Thanks guys. [u][font="Arial"]Pete[/font][/u] Share this post Link to post Share on other sites
Wolvereness 0 Posted January 20, 2005 (edited) Alpha... But filetypes come to mind... Why don't you test it out? $Handle = FileFindFirstFile('*') While Not @Error MsgBox(0,'',FileFindNextFile($Handle)) WEnd /Edit OOPS, forgot the closeing ) Edited January 20, 2005 by Wolvereness Offering any help to anyone (to my capabilities of course)Want to say thanks? Click here! [quote name='Albert Einstein']Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.[/quote][quote name='Wolvereness' date='7:35PM Central, Jan 11, 2005']I'm NEVER wrong, I call it something else[/quote] Share this post Link to post Share on other sites
herworth 0 Posted January 20, 2005 I thought alpha but it didn't seem to work every time. Probably me , missing something. Thanx [u][font="Arial"]Pete[/font][/u] Share this post Link to post Share on other sites
ezzetabi 3 Posted January 20, 2005 AFAIK there is not a predicable order. Share this post Link to post Share on other sites
sugi 0 Posted January 20, 2005 They are in a specific order. But not alphabetic, by date or something like that. It depends on the filesystem. For FAT the order is as follows: FAT creates the entries in the directories on a top-to-bottom principle but whenever there are gaps because a file or directory has been deleted this gap is filled from top to bottom before the list is extended. Note that long file/directory names can take up more than one entry which makes it even harder to guess what comes next. So if you can guarantee that nothing is deleted from a directory, the entries are in the order of the creation dates. Share this post Link to post Share on other sites
herworth 0 Posted January 20, 2005 Thanks everyone. I'm trying to get the most recent file from a list which I write to an ini. I'll have to work a piece of script to read and select as opposed to just selecting what I assume is last. [u][font="Arial"]Pete[/font][/u] Share this post Link to post Share on other sites