Computing.Net > Forums > Programming > creating new dos window

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

creating new dos window

Reply to Message Icon

Name: ken teo
Date: November 24, 2008 at 20:35:04 Pacific
OS: win xp
CPU/Ram: 1.9 GHz, 128M
Product: IBM
Comment:

can anyone tell me how to create a new dos window using visual c++, in borland you can just use window but it is not supported in visual c++, tks.



Sponsored Link
Ads by Google

Response Number 1
Name: BatchFreak
Date: November 24, 2008 at 21:30:01 Pacific
Reply:

Here you are :)

#include<stdlib.h> or #include <windows.h>

system("start c:\\windows\\system32\\cmd.exe");

I only Batch if possible, 2000 more lines of code, oh well.


0

Response Number 2
Name: klint
Date: November 25, 2008 at 03:19:13 Pacific
Reply:

It's all explained here:

http://msdn.microsoft.com/en-us/lib...

By the way, there's no such thing as a "DOS window" in Windows XP. It's called a console window, or, if it runs CMD.EXE, and Command Prompt Window (CMD.exe is not DOS.)


0

Response Number 3
Name: ken teo
Date: November 30, 2008 at 21:05:44 Pacific
Reply:

ok, tks.

how do i then printf to the new dos console, if i already have another original dos console, tks


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: creating new dos window

VBScript: Create new OU or new User www.computing.net/answers/programming/vbscript-create-new-ou-or-new-user/15445.html

Prevent DOS window from closing www.computing.net/answers/programming/prevent-dos-window-from-closing/14018.html

DOS windows close automatically www.computing.net/answers/programming/dos-windows-close-automatically/4203.html