cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Multiple Consoles
Multiple Consoles
Nov 27, 2011 at 3:02pm UTC
MDell95
(10)
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??
Nov 27, 2011 at 3:17pm UTC
hamsterman
(4538)
OS specific things. On windows it is AllocConsole, I think.
Nov 27, 2011 at 3:39pm UTC
modoran
(2077)
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.