Jump to content

Recommended Posts

Posted

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?

Posted

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]
Posted

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

Posted

What are the current technical limits of AutoIt v3?

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

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
  • Recently Browsing   0 members

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