[英]running batch file with perl scripts in it on entire folder
I have 3 Perl scripts and i run them through batch file 我有3个Perl脚本,并通过批处理文件运行它们
Script.bat 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) 我从cmd运行它,只需运行script.bat和文件名(.C文件)
script.bat <file_name>
How do i make it run for all the files in a specific folder 我如何使其针对特定文件夹中的所有文件运行
for example 例如
FOLDER ABCD has files ac, bc and dc 文件夹ABCD具有文件ac,bc和dc
then after typing the command 然后输入命令后
script.bat ABCD
all the three files ie ac, bc and dc should get executed ac,bc和dc这三个文件都应该执行
perl -le "-f and print and `script.bat $_` for map <$_/*>, pop||'.'" ABCD
如果未指定文件夹名称,则默认为当前目录。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.