You will need to supply proper quotes to the start command:
my $cmd = qq{start "C:\\Program Files (x86)\\Microsoft LifeCam\\LifeCa +m.exe"}; system($cmd) == 0 or die "Couldn't launch [$cmd]: $! / $?";
Alternatively, you can use the form of system(1, ...) as documented in perlport:
system( 1, $cmd ) ...
In reply to Re^3: Launch an exe using system
by Corion
in thread Launch an exe using system
by priyaviswam
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |