print "Enter the number in the first batch file:\n"; $f=; print "Enter the number in the last batch file:\n"; $l=; for ($i=$f;$i<=$l; $i++) { $t="file"; $concatfile=$t and $i; $file="$concatfile.bat"; system($file); sleep(2); }