I've got the create array, with exclusion part done with help of UDF's, but I need to take the array with file names and rename the files to specific file names and append each filename with a number if more than one file is found ie.

file.log
file1.log
file2.log

Here is what I have so far.

Code:


If Exist($folder)
$dir=Dirlist($folder,4)
If Exist($folder+"\keep.log")
$rem=remfromarray($dir,$archive)
EndIf
For Each $log in $rem
;Shell "rename command to use"
?$rem
Next
EndIf

_________________________
I could have made a neat retort but didn't, for I was flurried and didn't think of it till I was downstairs.
-Mark Twain