in reply to Re: Call batch script in new command / DOS window
in thread Call batch script in new command / DOS window
If the OP wants to wait for the child to finish, I've already presented the solution.
system("start /wait \"c:\program files\prog\prog\"");
If the OP doesn't want to wait for the child to finish and you need to use quotes, you need to specify any other argumennt in order to avoid an ambiguity in start's parameter parsing.
system("start \"\" \"c:\program files\prog\prog\""); -or- system("start /normal \"c:\program files\prog\prog\"");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Call batch script in new command / DOS window
by BrowserUk (Patriarch) on Aug 21, 2008 at 19:31 UTC | |
by ikegami (Patriarch) on Aug 21, 2008 at 22:26 UTC |