Jump to content
Sign in to follow this  
marcotv

List files of directory with thousands of files

Recommended Posts

marcotv

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?

Share this post


Link to post
Share on other sites
Fire

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]

Share this post


Link to post
Share on other sites
marcotv

My doubt was in having an array of 200000 items or more.

Is an array of 200000 items too bigger? there could be problems of memory (memory leak ecc)?

Share this post


Link to post
Share on other sites
Pain

What are the current technical limits of AutoIt v3?

Arrays: A maximum of 64 dimensions and/or a total of 16 million elements

Share this post


Link to post
Share on other sites
marcotv

thank you for your reply :mellow:

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  

×