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.
DOS windows close automatically
Name: Rapha Date: October 31, 2002 at 22:50:16 Pacific OS: windows xp CPU/Ram: p3 933 MHz 256 MB
Comment:
hi there, i have this little problem:
every time i execute a c++ program on DOS, the window closes automatically after the program finishes. Therefore i have to include the getch() function at the end of every program. But i would really prefer not to do this on EVERY program and just find a way to configure DOS so the windows won't close anymore. Any suggestions?? Thanks.
Name: Burbble Date: November 1, 2002 at 10:24:18 Pacific
Reply:
You could go to Start > Run > and type "Command" to open a DOS window (or open it from Start > Programs > Accessories), and then run your program from there (for example, type cd\Pathofyourprogram and then Nameofyourexecutable.exe).
-Burbble
0
Response Number 2
Name: mm_freak Date: November 2, 2002 at 10:37:01 Pacific
Reply:
There are ways for DOS and Win32 console applications to determine the calling process. If it isn't cmd.exe or command.com, call getch().
Summary: I've created a basic batch file that copies a file from one location to another. The batch file consists of one line: copy \\computer\share\file.doc c:\backup I'd like to make it so that when the o...
Summary: When you click on an icon for a .bat file, a DOS window is opened and stays open only long enough for the file to run. Once it's done, the dos window closes. So you need to do one of two things: - pu...
Summary: How can I automatically close the execution of the exe running after it has performed its execution successfully For example, the gvwgs32.exe which is the part of "ghost script" software has finished ...