Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: diruse is not recognized

by NetWallah (Canon)
on Apr 16, 2013 at 03:11 UTC ( [id://1028800]=note: print w/replies, xml ) Need Help??


in reply to diruse is not recognized

Supply the full path to "diruse.exe". Remember to escape the backslashes. Eg:
open(DIRUSE, "c:\\windows\\system32\\diruse.exe . |");
If the path contains spaces, you will need to include double-quotes to contain them.

             "I'm fairly sure if they took porn off the Internet, there'd only be one website left, and it'd be called 'Bring Back the Porn!'"
        -- Dr. Cox, Scrubs

Replies are listed 'Best First'.
Re^2: diruse is not recognized
by tobias_hofer (Friar) on Apr 16, 2013 at 06:54 UTC

    I know this may be a bit redundant information, but to ensure you do not forget any backslash you can also write it with single slash which makes it a bit more readable. Windows can handle single slashes - at least since XP/2000.

    my $dirUseResult =  qx(c:/windows/system32/diruse.exe);

    Cheers!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2024-04-19 15:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found