marcotv Posted March 11, 2010 Posted March 11, 2010 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?
Fire Posted March 11, 2010 Posted March 11, 2010 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]
marcotv Posted March 11, 2010 Author Posted March 11, 2010 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)?
Pain Posted March 11, 2010 Posted March 11, 2010 What are the current technical limits of AutoIt v3?Arrays: A maximum of 64 dimensions and/or a total of 16 million elements
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now