Sign in to follow this  
Followers 0
Daikenkaiking

List All Files In A Directory

8 posts in this topic

Sorry if this has been asked before, I couldent find it in search :(

How do you list all the files a directory? Or store them in an array, that would be better.

I cant figure this out, sorry if im asking something that has been repeated lots of times, just link me then :)

Share this post


Link to post
Share on other sites



Sorry if this has been asked before, I couldent find it in search :(

How do you list all the files a directory? Or store them in an array, that would be better.

I cant figure this out, sorry if im asking something that has been repeated lots of times, just link me then :)

_FileListToArray() ?

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Hmm, ok ill try that :)

Share this post


Link to post
Share on other sites

_FileListToArray() ?

Im sorry, but what include do I need for this, I cant find it in the AutoIt base functions :)

Share this post


Link to post
Share on other sites

Im sorry, but what include do I need for this, I cant find it in the AutoIt base functions :)

This function is available in the Beta version of Autoit3... just look in the helpfle for the specifics..

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Thanks again :)

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

You need Beta version. Here is the example from the help file

#Include <File.au3>
#Include <Array.au3>
$FileList=_FileListToArray(@DesktopDir)
If (Not IsArray($FileList)) and (@Error=1) Then
    MsgBox (0,"","No Files\Folders Found.")
    Exit
EndIf
_ArrayDisplay($FileList,"$FileList")

Edit - Shit I type too slow

Edited by BigDod


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

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