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"};
In Section
Seekers of Perl Wisdom