Keep DOS box from going away after DOS script completes?

Keep DOS box from going away after DOS script completes?

Post by Jeff » Mon, 22 Nov 2004 11:40:21


Hi - in WIN98 - when I ran a .BAT file, I had the option of keeping the
window around when the script finished. How do I do this in XP?
thanks!
/j
 
 
 

Keep DOS box from going away after DOS script completes?

Post by Wesley Vog » Mon, 22 Nov 2004 12:44:38

Add pause at the end of the batch file.

Pause
[[Suspends processing of a batch program and displays a message prompting
the user to press any key to continue.]]

--
Hope this helps. Let us know.
Wes


Jeff W < XXXX@XXXXX.COM > hunted and pecked:

 
 
 

Keep DOS box from going away after DOS script completes?

Post by Jeff » Mon, 22 Nov 2004 12:52:45

duh! 8-}
 
 
 

Keep DOS box from going away after DOS script completes?

Post by Wesley Vog » Tue, 23 Nov 2004 01:04:40

Keep having fun! :-)

--
Hope this helps. Let us know.
Wes


Jeff W < XXXX@XXXXX.COM > hunted and pecked:
 
 
 

Keep DOS box from going away after DOS script completes?

Post by Jeff » Tue, 23 Nov 2004 02:25:31

actually

cmd /k is what one wants to use
 
 
 

Keep DOS box from going away after DOS script completes?

Post by Wesley Vog » Tue, 23 Nov 2004 08:43:45

Are you running cmd /k from Start | Run ??

--
Hope this helps. Let us know.
Wes


Jeff W < XXXX@XXXXX.COM > hunted and pecked:
 
 
 

Keep DOS box from going away after DOS script completes?

Post by Jeff » Tue, 23 Nov 2004 08:48:47

from the command line