Keeping DOS windows open after the program closes?

NuclearFusi0n

Diamond Member
Jul 2, 2001
7,028
0
0
Say i have a shortcut to "crap.exe" which is a command line program. How can I keep the command line window from closing after the program executes? Hopefully a global setting which will take effect for every command line program....
 

DaFinn

Diamond Member
Jan 24, 2002
4,725
0
0
Easy, just install dos 6.2... it will delete everything else on your hdd, and the dos window is quaranteed to stay open :D

... or, at command prompt just type del win.com...
 

Eli

Super Moderator | Elite Member
Oct 9, 1999
50,419
8
81
heh, just run the program from a cmd window you opened yourself.

That's what I do.
 

DivideBYZero

Lifer
May 18, 2001
24,117
2
0
I doubt he can follow any of this good advice as he is currently having trouble finding the 'technical support' forum on here.

Must be the confusing name......
 

Xionide

Diamond Member
Apr 20, 2002
8,679
2
81
In the "run" thinger type in "cmd" then type the stuff you need in the window that pops up. It will not disapear.

Just a more thurow way of explaining Eli's response.

-Xionide
 

Sunner

Elite Member
Oct 9, 1999
11,641
0
76
If you wanna have a batchfile you can just doubleclick, put "more" after crap.exe"

---
crap.exe /blah
more
---
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
C:\>cmd /?
Starts a new instance of the Windows 2000 command interpreter

CMD [/A | /U] [/quote] [/D] [/E:eek:N | /E:eek:FF] [/F:eek:N | /F:eek:FF] [/V:eek:N | /V:eek:FF]
[[/S] [/C | /K] string]

/C Carries out the command specified by string and then terminates
/K Carries out the command specified by string but remains
/S Modifies the treatment of string after /C or /K (see below)
/Q Turns echo off
/D Disable execution of AutoRun commands from registry (see below)
/A Causes the output of internal commands to a pipe or file to be ANSI
/U Causes the output of internal commands to a pipe or file to be
Unicode
/T:fg Sets the foreground/background colors (see COLOR /? for more info)
/E:eek:N Enable command extensions (see below)
/E:eek:FF Disable command extensions (see below)
/F:eek:N Enable file and directory name completion characters (see below)
/F:eek:FF Disable file and directory name completion characters (see below)
/V:eek:N Enable delayed environment variable expansion using c as the
delimiter. For example, /V:eek:N would allow !var! to expand the
variable var at execution time. The var syntax expands variables
at input time, which is quite a different thing when inside of a FOR
loop.
 

NuclearFusi0n

Diamond Member
Jul 2, 2001
7,028
0
0
OK, but the main reason I asked is that in Dev-C++ (compiler/IDE) everytime I compile, then run, the program just closes immediately. it's not exactly convinient to pull up a command window every time I want to compile a program for testing.
 

DaChicken

Junior Member
Jun 16, 2003
4
0
0
The best way I know of is to add a pause command at the end of your source code. I used to know how to do it, but not any more. :(

I don't know of any way to affect the default settings for DOS boxes.