print "Enter the common character in the batch file:\n"; $t=; 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.$i; #$file="$concatfile.bat"; system( "$^t$i.bat" ); #system($file); sleep(2); }