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
| [reply] [d/l] |
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!
| [reply] [d/l] |
Crossposted at StackOveflow. It is considered polite to inform about crossposting so that people not attending both sites do not waste their efforts on solving a problem already solved at the other corner of the Internet.
| [reply] |