I have 3 Perl scripts and i run them through batch file
Script.bat
perl script1.pl %1
perl script2.pl %1
perl script3.pl %1
I run it from cmd, by just running the script.bat and file name(.C files)
script.bat <file_name>
How do i make it run for all the files in a specific folder
for example
FOLDER ABCD has files a.c, b.c and d.c
then after typing the command
script.bat ABCD
all the three files i.e a.c, b.c and d.c should get executed
for my $file (@ARGV)and then call it withperl script.pl ABCD/*. Although if you are in Windows, the shell will not glob for you, so you need to do that yourself with@ARGV = map glob, @ARGV.