Sign in to follow this  
Followers 0
SmOke_N

_FileListToArrayByDate()

4 posts in this topic

#1 ·  Posted (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)
EndIf

Edit

Updated some error checking.

Edit2

Updated Syntax

Edit3

Last Edit (Until the next one): UDF Standard Format

Edited by SmOke_N

[center]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.[/center]

Share this post


Link to post
Share on other sites



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?

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

Share this post


Link to post
Share on other sites

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

[center]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.[/center]

Share this post


Link to post
Share on other sites

As soon as you write the add-on :)

i meant to get to that this weekend, but had NO free time at all. [/LuckyBastard]

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0