Stop "DOS" programs from "Close on exit"

WaxyChicken

New member
Member
Local time
3:43 PM
Messages
34
In windows XP and earlier, the Windows had an option in Properties.
you could tell the Dos like programs weather or not to "Close on exit".

But, in windows 7, there is no checkbox for this in the program propteries.

How do i stop cmd.exe, and programs that execute in a DOS style box, from "Close On Exit" ?

too often i'm missing output that i need to see!
 

My Computer

OS
Win7 Ultimate x32
Use cmd /k command_to_run

e.g.
cmd /k dir
cmd /k ipconfig /all
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Lenovo IdeaCenter 450
OS
Windows 10 Pro X64
CPU
Intel Quad Core i7-4770 @ 3.4Ghz
Memory
16.0GB PC3-12800 DDR3 SDRAM 1600 MHz
Graphics Card(s)
Intel Integrated HD Graphics
Sound Card
Realtek HD Audio
Monitor(s) Displays
HP 22" LCD
Screen Resolution
1680 x 1050
Hard Drives
250GB Samsung EVO SATA-3 SSD
2TB Seagate ST2000DM001 SATA-2
1.5TB Seagate ST3150041AS SATA
Keyboard
Dell USB
Mouse
Lenovo USB
Internet Speed
Cable via Road Runner 3MB Upload, 30MB Download
Antivirus
Windows Defender, MBAM Pro, MBAE
Browser
Seamonkey
Other Info
UEFI/GPT
PLDS DVD-RW DH16AERSH
Use cmd /k command_to_run

e.g.
cmd /k dir
cmd /k ipconfig /all


that does not help if i click on a program (such as "You think this is Not a Virus.exe") and it runs in it's own cmd window then closes and exits it's cmd window before you can read what it said (such as "Haha, you're infected in excatly c:\gotcha.txt")

likewise, .BAT won't help because i would have to spend several weeks hunting down all my .exe's and making .bat's for them.

in windows XP ALL programs that used the cmd window had the "Close On Exit" checkbox option in properties. but it's gone in Win7. there must be a work around somewhere!
 

My Computer

OS
Win7 Ultimate x32
I just read this: Just press the Shift button while starting the program, and the cmd window will stay open.

I don't have an .exe that open a Command Prompt window so no way to test it. Let me know if this works.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Lenovo IdeaCenter 450
OS
Windows 10 Pro X64
CPU
Intel Quad Core i7-4770 @ 3.4Ghz
Memory
16.0GB PC3-12800 DDR3 SDRAM 1600 MHz
Graphics Card(s)
Intel Integrated HD Graphics
Sound Card
Realtek HD Audio
Monitor(s) Displays
HP 22" LCD
Screen Resolution
1680 x 1050
Hard Drives
250GB Samsung EVO SATA-3 SSD
2TB Seagate ST2000DM001 SATA-2
1.5TB Seagate ST3150041AS SATA
Keyboard
Dell USB
Mouse
Lenovo USB
Internet Speed
Cable via Road Runner 3MB Upload, 30MB Download
Antivirus
Windows Defender, MBAM Pro, MBAE
Browser
Seamonkey
Other Info
UEFI/GPT
PLDS DVD-RW DH16AERSH
Back
Top