Jump to content

List files of directory with thousands of files


Recommended Posts

Hi guys,

I want o list of files of a directory.

I usually use _FileListToArray

In this case i have a directory with 200000 files or more.

Can i use _FileListToArray or there could be a problem of memory?

is there another solution without using an array?

Link to comment
Share on other sites

BTW you can use this WIN stadart method for get list.I usually using this way:

#include <Array.au3>
#include <File.au3>
Dim $avarray

RunWait("cmd.exe /c " & "DIR /A /D /B *.*>"&@TempDir&"\dirs.ini",@ScriptDir,@SW_HIDE)
;MsgBox(64,"",FileRead(@TempDir&"\dirs.ini"))
_FileReadToArray(@TempDir&"\dirs.ini",$avarray)
_ArrayDisplay($avarray,"List of Files and dirs")
[size="5"] [/size]
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...