I understand you want to copy files matching the pattern "screenshot*"
in folder "C:\Backup\Xbox Backups\Halo 3 and ODST ScreenShot's"
to folder "C:\Users\brody\Desktop\Shots"
with file names ScreenShot1, ScreenShot2, etc. (sequentially numbered).
Here is an alternate script.
(Note that, in the script, I am using forward slashes in the path,
instead of backslashes. This alleviates having to worry about
"\t" being treated as tab, etc.
Forward slashes work in window.)
# Script screenshot.txt
var str list, file
var int index
lf -n "screenshot*" "C:/Backup/Xbox Backups/Halo 3 and ODST ScreenShot's" > $list
while ($list <> "")
lex "1" $list > $file
system copy ("\""+$file+"\"") ("\"C:/Users/brody/Desktop/Shots/ScreenShot"+makestr(int($index))+"\"")
set $index = $index + 1
Script is in biterscripting. To execute,
save the script in file "C:/Scripts/screenshot.txt",
start biterscripting, enter the following command.
Feel free to modify the script for other such automated tasks you may need to perform.
The documentation for the lf command is at http://www.biterscripting.com/helpp... .
You will find even more goodies in that command's help page,
so you can narrow down exactly which files are 'picked' by the script to process.