Marius Posted November 18, 2005 Share Posted November 18, 2005 (edited) __FileListToArray What is maximum possible number of files to list to array? I have a folder with 5000 files and __FileListToArray won't work in this folder. Any ideas how to list a 5000 files to array? Edited November 18, 2005 by Marius Marius back in da hood! :) Link to comment Share on other sites More sharing options...
Marius Posted November 18, 2005 Author Share Posted November 18, 2005 anyone? Marius back in da hood! :) Link to comment Share on other sites More sharing options...
Developers Jos Posted November 18, 2005 Developers Share Posted November 18, 2005 (edited) No limits as far as I know... What is the Error/problem you get ? Edited November 18, 2005 by JdeB 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. Link to comment Share on other sites More sharing options...
Marius Posted November 18, 2005 Author Share Posted November 18, 2005 autoit just wont create an array. anyway, I found a solution: Func _FileSearch($s_Mask = '', $i_recurse = 1) Local $s_Command = ' /c dir /B "' If $i_recurse <> 1 Then $s_Command = ' /c dir /B /S "' Local $s_Buf = '', $i_Pid = Run(@ComSpec & $s_Command & $s_Mask & '"', @WorkingDir, @SW_HIDE, 2) ProcessSetPriority($i_Pid, 5) While Not @error $s_Buf &= StdoutRead ($i_Pid) WEnd Return StringSplit(StringTrimRight($s_Buf, 2), @CRLF, 1) EndFunc;==>_FileSearch Tried this and everything went ok. Marius back in da hood! :) Link to comment Share on other sites More sharing options...
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