Jump to content
Sign in to follow this  
herworth

FileFindNextFile

Recommended Posts

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

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 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

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...