Moderators SmOke_N Posted March 13, 2006 Moderators Posted March 13, 2006 (edited) This was a request, it's not overly tested, but it seems to do the trick... You can test it with this:$Test = _FileListToArrayByDate(@WindowsDir, 'exe', @DeskTopDir & '\StoreFileArray.txt', 1, 1) If IsArray($Test) Then For $i = 1 To UBound($Test) - 1 MsgBox(0, 'Testing', $Test[$i]) Next Else MsgBox(0, 'Error', '@error = ' & $Test) EndIfEditUpdated some error checking.Edit2Updated SyntaxEdit3Last Edit (Until the next one): UDF Standard Format Edited March 14, 2006 by SmOke_N Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
seandisanti Posted March 14, 2006 Posted March 14, 2006 This was a request, it's not overly tested, but it seems to do the trick... You can test it with this:$Test = _FileListToArrayByDate(@WindowsDir, '*.exe', @DeskTopDir & '\StoreFileArray.txt', 1, 1) If IsArray($Test) Then For $i = 1 To UBound($Test) - 1 MsgBox(0, 'Testing', $Test[$i]) Next Else MsgBox(0, 'Error', '@error = ' & $Test) EndIf Edit Updated some error checking. i didn't try it out, but looks very nice. when are you going to add recursive sub directory inclusion?
Moderators SmOke_N Posted March 14, 2006 Author Moderators Posted March 14, 2006 i didn't try it out, but looks very nice. when are you going to add recursive sub directory inclusion?As soon as you write the add-on Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
seandisanti Posted March 14, 2006 Posted March 14, 2006 As soon as you write the add-on i meant to get to that this weekend, but had NO free time at all. [/LuckyBastard]
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