Hi again
Is there any ready to use UDF to list files, put them to array and sort them by date?
As far as I know, RecFileListToArray by Melba and _FO_FileSearch by AZJIO doesn't provide this feature, please CMIIW.
I need to list and sort thousands (or maybe ten of thousand later) files over a 10/100 LAN network using SMB protocol,
so I prefer use a ready to use and optimized UDF rather than build by my low level and buggy programming skill
Thanks!
Are you just retrieving from a single folder?
#include <Array.au3> ; for testing
Global $sDirectory = @WindowsDir, $sStdOut
$PID = Run(@ComSpec & ' /c DIR "' & $sDirectory & '" /B /A-D /O-D', "", @SW_HIDE, 2) ; /O-D = newest first, 2 = $STDOUT_CHILD
While Not @error
$sStdOut &= StdoutRead($PID)
WEnd
$aStdOut = StringSplit(StringStripWS($sStdOut, 7), @CRLF)
_ArrayDisplay($aStdOut) ; for testing
You can remove the /B parameter and you'll get dates and file sizes in a