Multiple Consoles

i wrote a program which copies itself and runs the copy, but it still runs in the same console but i'd like to run it in a new one... is there any way to open a new console??
OS specific things. On windows it is AllocConsole, I think.
A process can have only one console. See MSDN page for AllocConsole().

If it is a console program you just spawn cmd.exe as another process. See documentation for cmd.exe switches.
Topic archived. No new replies allowed.