Jump to content
Sign in to follow this  
m0nk3yI3unz

Best way to Enum Files?

Recommended Posts

m0nk3yI3unz

Hey all. Long time no see!!

Well Im working on a sort of server, and I need it to enumerate the files in a certain directory relative to the script path and put it in an array. What is the best way to do this? I've tried outputting a DIR call to a file, reading the file, then deleting said file, but it just doesn't seem to work. Plus, Im sure there is an easier way, maybe with filefindfirstfile or something... Not sure how to go about this.

Any help would be appreciated greatly.

Thanks!

-Monkey


Monkeh.

Share this post


Link to post
Share on other sites
monoceres

Use the _FileListToArray function declared in File.au3, I use it all the time :)

Edited by monoceres

Broken link? PM me and I'll send you the file!

Share this post


Link to post
Share on other sites
m0nk3yI3unz

oh... wow... how, again, did I miss that??O.o

Thanks heaps! ^^


Monkeh.

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  

×