Keep DOS box from going away after DOS script completes?

G

Guest

Guest
Archived from groups: microsoft.public.windowsxp.newusers (More info?)

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
 
Archived from groups: microsoft.public.windowsxp.newusers (More info?)

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

In news:uH%23dxN3zEHA.3976@TK2MSFTNGP09.phx.gbl,
Jeff W <ms-newsRemoveForSpam@kwcpa.com> hunted and pecked:
> 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
 
Archived from groups: microsoft.public.windowsxp.newusers (More info?)

duh! 8-}

Wesley Vogel wrote:

>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.]]
>
>
>
 
Archived from groups: microsoft.public.windowsxp.newusers (More info?)

Keep having fun! 🙂

--
Hope this helps. Let us know.
Wes

In news:%23JL0P23zEHA.2196@TK2MSFTNGP14.phx.gbl,
Jeff W <ms-newsRemoveForSpam@kwcpa.com> hunted and pecked:
> duh! 8-}
>
> Wesley Vogel wrote:
>
>> 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.]]
 
Archived from groups: microsoft.public.windowsxp.newusers (More info?)

actually

cmd /k is what one wants to use

Wesley Vogel wrote:

>Keep having fun! 🙂
>
>
>
 
Archived from groups: microsoft.public.windowsxp.newusers (More info?)

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

--
Hope this helps. Let us know.
Wes

In news:uikca8%23zEHA.1196@TK2MSFTNGP15.phx.gbl,
Jeff W <ms-newsRemoveForSpam@kwcpa.com> hunted and pecked:
> actually
>
> cmd /k is what one wants to use
>
> Wesley Vogel wrote:
>
>> Keep having fun! 🙂
 
Archived from groups: microsoft.public.windowsxp.newusers (More info?)

from the command line

Wesley Vogel wrote:

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