S
Sol Linderstein
Hi,
I've got the following two line perl program that I run on a Windows
XP Pro system:
print `c:\\windows\\system32\\cmd.exe /c dir c:\\documents and
settings\\me\\Desktop` ;
print `dir c:\\docume~1\\me\\desktop` ;
When I run it the first line produces an error: The system cannot find
the file specified. The second line produces the desired output.
I'm confused because cmd.exe supports spaces in directory paths yet
it's not supporting them in this perl program.
Any idea on how I can get perl to do the right thing with backticks
and paths in DOS?
Thanks,
Sol
I've got the following two line perl program that I run on a Windows
XP Pro system:
print `c:\\windows\\system32\\cmd.exe /c dir c:\\documents and
settings\\me\\Desktop` ;
print `dir c:\\docume~1\\me\\desktop` ;
When I run it the first line produces an error: The system cannot find
the file specified. The second line produces the desired output.
I'm confused because cmd.exe supports spaces in directory paths yet
it's not supporting them in this perl program.
Any idea on how I can get perl to do the right thing with backticks
and paths in DOS?
Thanks,
Sol