in reply to system("start $command") in Win32

You can write:
system(1, "calc.exe")

Note that is will only work on Windows and is totally unportable to other operating systems -- on most other systems you want to do a fork followed by exec.

-- David Irving

Replies are listed 'Best First'.
Re^2: system("start $command") in Win32
by BrowserUk (Patriarch) on Feb 01, 2008 at 21:18 UTC