P0w3rK!d has asked for the wisdom of the Perl Monks concerning the following question:
my $cmd = "dir /b $dir\\*.bat"; print "cmd = $cmd\n"; my $ret = `$cmd`;
Here is the error message:
cmd = dir /b C:\Dir\To\Scan\*.bat dir: /b: No such file or directory dir: C:DirToScan*.bat: No such file or directory
What am I doing wrong here?
Note: I already tried this... my $cmd = "dir \/b $dir\\*.bat";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: short dir listing
by runrig (Abbot) on Oct 23, 2002 at 18:02 UTC | |
by P0w3rK!d (Pilgrim) on Oct 23, 2002 at 18:07 UTC | |
|
Re: short dir listing
by tadman (Prior) on Oct 23, 2002 at 18:21 UTC | |
|
Re: short dir listing
by blokhead (Monsignor) on Oct 23, 2002 at 17:54 UTC | |
by P0w3rK!d (Pilgrim) on Oct 23, 2002 at 17:59 UTC | |
by Rich36 (Chaplain) on Oct 23, 2002 at 18:04 UTC |