Here is range.pl. You can use 'range' to loop through a bunch of files with digits in their filenames.. Here is a sample batch file to invoke 'range'.