I have noticed when a dos command is run the DOS window closes after the command is run. The
window closes after either a bat file is run or a command is run from the program, run, command
line. Any idea how to keep the window open so I may see the command results?? Thank you in
advance for any assistance.
*****************
Thank You kGbAT@msbx.net
To reply to this email please remove the AT
after the kGb in the reply to address as shown above.
Re: Dos window automaticlly closes after command??
KG wrote:
> I have noticed when a dos command is run the DOS window closes after
> the command is run. The window closes after either a bat file is run
> or a command is run from the program, run, command line. Any idea
> how to keep the window open so I may see the command results?? Thank
> you in advance for any assistance. *****************
Re: Dos window automaticlly closes after command??
"KG" <kgstAT@msbx.net> wrote in message
newsqhh13drrduutal7j3s3jkdpd2qnhopse3@4ax.com...
> I have noticed when a dos command is run the DOS window closes after the
command is run. The
> window closes after either a bat file is run or a command is run from the
program, run, command
> line. Any idea how to keep the window open so I may see the command
results?? Thank you in
> advance for any assistance.
> *****************
> Thank You kGbAT@msbx.net
>
> To reply to this email please remove the AT
> after the kGb in the reply to address as shown above.
You can adapt Gordon's suggestion to the "Run" box too.
Instead typing the command directly, such as
ping www.yahoo.com
run it through your own batch file like so:
kg ping www.yahoo.com
kg.bat should reside in the Windows folder and contain
these lines:
@echo off
%1 %2 %3 %4 %5 %6 %7 %8 %9
pause
A better alternative would be to run your commands from
a proper Command Prompt.
Re: Dos window automaticlly closes after command??
Also cmd /k
/K Carries out the command specified by string but remains
cmd /k whatever_command I.e. cmd /k start iexplore
cmd /k start iexplore in Start | Run will start cmd.exe, start Internet
Explorer (iexplore.exe) and cmd.exe will stay open.
For Pause HELP, paste the following line into Start | Run and click OK...
hh ntcmds.chm::/pause.htm
--
Hope this helps. Let us know.
Wes
MS-MVP Windows Shell/User
In newsqhh13drrduutal7j3s3jkdpd2qnhopse3@4ax.com,
KG <kgstAT@msbx.net> hunted and pecked:
> I have noticed when a dos command is run the DOS window closes after the
> command is run. The window closes after either a bat file is run or a
> command is run from the program, run, command line. Any idea how to keep
> the window open so I may see the command results?? Thank you in advance
> for any assistance. *****************
> Thank You kGbAT@msbx.net
>
> To reply to this email please remove the AT
> after the kGb in the reply to address as shown above.