@echo off :: This is "parse_excel.bat" perl "C:\Path To\parse_excel.pl" %* pause #### for my $xl_file_name (@ARGV) { ... }