c:\test\0.results.txt size : 2 bytes
c:\test\1.results.txt size : 8 bytes
c:\test\2.results.txt size : 6 bytes
i need to rename the bigger file to a name from the clipboard.
i've tried to read the files through a loop like the following but don't really know how to extract and compare them, please help, much thanks!
Code: Select all
path = c:\test
NewName := Clipboard
loop, %path%\*.results.txt {
File%A_Index% := A_LoopFileName
Size%A_Index% := A_LoopFileSize
....
FileMove .....
}