How do I keep dos prompt from closing when a prog finishes in Win2K?

Time2Kill

Golden Member
Nov 20, 1999
1,816
4
81
www.brooksidestorage.com
I made a shortcut to uptime.exe on my desktop in win2k. It just opens, then closes because the command propmt closes as soon as the program is finished. How do I make it so it stays open for a certain amount of time or until I close it?
 

AndyHui

Administrator Emeritus<br>Elite Member<br>AT FAQ M
Oct 9, 1999
13,141
17
81
Create a batch file with the contents:

uptime.exe
pause

Pause will halt the CMD command prompt until you press a key.
 

IamDavid

Diamond Member
Sep 13, 2000
5,888
10
81
Instead of clicking on the .exe go to command prompt and type the target.. Like A:\C:\xxx.exe
 

AndyHui

Administrator Emeritus<br>Elite Member<br>AT FAQ M
Oct 9, 1999
13,141
17
81
Ah....but to open up a command prompt defeats the purpose of having the shortcut in the first place.
 

BudB

Member
Dec 31, 1999
136
0
0
Why not just edit the shortcut's properties and unmark the Close On Exit box?
 

BudB

Member
Dec 31, 1999
136
0
0
Depending on how the shortcut was created and what it points to you can have a &quot;Close On exit&quot; check box in W2K. I have a great number of programs installed with a Wise installer that do have it. But I admit I also have some that don't and haven't taken the time to figure out why.