Ask Your Question

Revision history [back]

The C Std Library system call doesn't provide any control over the target execution environment. Assuming you're using Windows (you mentioned a cmd window) then you should look into using the Win32 API CreateProcess.