herworth Posted January 19, 2005 Share 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] Link to comment Share on other sites More sharing options...
Wolvereness Posted January 20, 2005 Share 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] Link to comment Share on other sites More sharing options...
herworth Posted January 20, 2005 Author Share 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] Link to comment Share on other sites More sharing options...
ezzetabi Posted January 20, 2005 Share Posted January 20, 2005 AFAIK there is not a predicable order. Link to comment Share on other sites More sharing options...
sugi Posted January 20, 2005 Share 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. Link to comment Share on other sites More sharing options...
herworth Posted January 20, 2005 Author Share 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] Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now