in reply to Starting a process under Win32
It would help if you could explain what you are attempting to achieve, such as do you need to block while the application is running, or perform additional tasks after running the command; since you are using system and not exec. Is there a particular reason you you would rather fork outside of your code?
You could use the windows start to fork your process off, ie;
but it might not be what you need.system("start","C:\\Program Files\\VideoLAN\\VLC\\vlc.exe", "--rc-host +", "127.0.0.1:9999" ); [http://support.microsoft.com/kb/126410]
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Starting a process under Win32
by JStrom (Pilgrim) on Feb 19, 2008 at 02:14 UTC |