in reply to Re: Proc::Background does not take file path with spaces
in thread Proc::Background does not take file path with spaces
The Windows command shell (cmd.exe) expects whitespace in arguments to be properly quoted, and "properly quoted" in its terms means to use double quotes to surround the file name.
As double quotes treat the backslash special, single-backslashing a space character doesn't make much sense to me. I would try
my $Command = q{"C:\Program Files (x86)\vs.exe"};
or the double-quoted variant
my $Command = qq{"C:\\Program Files (x86)\\vs.exe"};
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Proc::Background does not take file path with spaces
by dinasour (Novice) on Apr 27, 2012 at 17:16 UTC | |
by BrowserUk (Patriarch) on Apr 27, 2012 at 17:37 UTC | |
|
Re^3: Proc::Background does not take file path with spaces
by temporal (Pilgrim) on Apr 27, 2012 at 14:41 UTC | |
|
Re^3: Proc::Background does not take file path with spaces
by Anonymous Monk on Apr 27, 2012 at 17:14 UTC |