# Script RemaneBMP.txt
var str folder, prefix, list, file, newname
cd $folder
lf -n "*.bmp" $folder > $list
while ($list <> "")
do
lex "1" $list > $file
stex -p "^/^l[" $file > $newname
set $newname = $prefix + $newname
system rename ("\""+$file+"\"") ("\""+$newname+"\"")
done
This is in biterscripting ( http://www.biterscripting.com ). To try (first in a test folder), save the code in file "C:/Scripts/RenameBMP.txt", start biterscripting, enter the following command exactly as below.