Jump to content
Sign in to follow this  
Daikenkaiking

List All Files In A Directory

Recommended Posts

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() ?

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

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


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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...