Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Re: short dir listing

by P0w3rK!d (Pilgrim)
on Oct 23, 2002 at 17:59 UTC ( [id://207470]=note: print w/replies, xml ) Need Help??


in reply to Re: short dir listing
in thread short dir listing

$cmd = quotemeta($cmd); RESULT: cmd = dir\ \/b\ L\:\\Dir\\To\\Scan\\\*\.bat Parameter format not correct - "b\".

Replies are listed 'Best First'.
Re: Re: Re: short dir listing
by Rich36 (Chaplain) on Oct 23, 2002 at 18:04 UTC

    Either use forward slashes in the dir name instead of backslashes or escape the backslashes in your dir name.

    $dir = 'L:/Dir/To/Scan'; # or $dir = "L:\\Dir\\To\\Scan";

    «Rich36»

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://207470]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (2)
As of 2024-04-26 06:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found