in reply to Re^2: Launch an exe using system
in thread Launch an exe using system
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 ) ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Launch an exe using system
by priyaviswam (Sexton) on Nov 14, 2011 at 11:24 UTC | |
by Corion (Patriarch) on Nov 14, 2011 at 11:34 UTC | |
by GrandFather (Saint) on Nov 14, 2011 at 19:53 UTC |