Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Stop "DOS" programs from "Close on exit"

26 Aug 2014   #1
WaxyChicken

Win7 Ultimate x32
 
 
Stop "DOS" programs from "Close on exit"

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 System SpecsSystem Spec
.
26 Aug 2014   #2
Ztruker

Windows 10 Pro X64
 
 

Use cmd /k command_to_run

e.g.
cmd /k dir
cmd /k ipconfig /all
My System SpecsSystem Spec
26 Aug 2014   #3
WaxyChicken

Win7 Ultimate x32
 
 

Quote   Quote: Originally Posted by Ztruker View Post
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 System SpecsSystem Spec
.

27 Aug 2014   #4
Ztruker

Windows 10 Pro X64
 
 

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 System SpecsSystem Spec
Reply

 Stop "DOS" programs from "Close on exit"




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
How do I stop W7 "calling home" and displaying "not genuine" messages?
MS thinks that one of my PCs is running W7 that's not genuine. It is genuine - at least I bought it from Amazon and paid 141 for it so that - to me - means it's genuine. It may not be but neither Amazon nor MS will take any responsibility for it not being genuine so I've given up with them both. I...
Windows Updates & Activation
Changing the "minimize" "maximize" and "close" buttons of a theme
Ok so I'm using a custom visual style made by another user however I don't really like the buttons used that I mentioned above. The creator states it is acceptable to change the theme to however you like as long as you don't redistribute it anywhere. Ok so I opened up the .msstyles file (using...
Customization
BSOD every few hours: mostly "STOP: 0x00000F4", "c00021a" & "c0000135"
Hi everyone! Yesterday my HP laptop (Windows 7) started getting BSOD with various types of errors (mostly "STOP: 0x00000F4", "STOP: 0x0000007A", "c00021a" and one "missing %hs, c0000135"). Most of the time it restarts without any issues and works fine right after the BSOD and then an hour or two...
BSOD Help and Support
"Waiting for Background Program to Close" shows no actual programs?!
Hey everyone, Recently, I have noticed that every time I properly shut down my laptop, I keep getting the pop up saying "Waiting for Background Program to Close." The box doesn't even list the program that needs to close. (Can this be a virus) Furthermore, if I wait a few seconds, it will...
General Discussion
Need to add "TASKBARS" (MSese for "Launchpads", "Docks" NOT "Toolbars"
My office just upgraded, and I can no longer use Windows XP. On this system, I was able to add a separate taskbar to facilitate quick access to commonly-browsed folder locations on our vast network, and another one expedited the launching of useful programs and lists. Each task on each taskbar...
General Discussion
BSoD with "STOP:0x00000024" error and "Ntfs.sys"
Basic system description: Desktop PC about 2 years old with: Motherboard: Asus P5Q-E Processor: Intel Core 2 Quad Q6700 @ 2.66GHz RAM amount: 8GB Operating System: Windows 7 Professional Service Pack 1 OEM 64 bit Graphics Cards (I have two installed and software controllable CrossFire): AMD...
BSOD Help and Support


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 07:51.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App