原帖由 alexru 于 2007-1-17 14:44 发表
File::Find
原帖由 Namelessxp 于 2007-1-17 17:03 发表
大才小用了,2k以上的,用批处理就可以解决
原帖由 zca7 于 2007-1-17 17:18 发表
批处理只能call单个bat 不能同时call多个吧
我再努力努力~
原帖由 zca7 于 2007-1-17 18:41 发表
那如果包含子目录呢?
use strict;
use warnings;
use Win32::Process;
my $dir = 'C:\\WINNT';
opendir DH, $dir or die $!;
my $ps = 0;
while (my $file = readdir DH) {
# demo for excuting 2 application in parallel
if ($file eq 'notepad.exe' or $file eq 'regedit.exe') {
Win32::Process::Create(
$ps,
"$dir\\$file",
'',
0,
CREATE_NEW_CONSOLE,
'.'
);
}
$ps++;
}
closedir DH;
欢迎光临 Chinaunix (http://bbs.chinaunix.net/) | Powered by Discuz! X3.2 |