Re: DOS window disappears

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance




"David Candy" <.> wrote in message news:%23$GRhoAVGHA.5652@xxxxxxxxxxxxxxxxxxxxxxx
In a bat file it is easier to have Pause as the last line.

**
That did the trick - and adding exit after the pause closes the window after pressing a key.

Thanks
***

--
--------------------------------------------------------------------------------------------------
How to lose a war in Iraq
http://webdiary.com.au/cms/?q=node/1335#comment-48641
=================================================
"Richard in AZ" <me@xxxxxxxxxxxxxx> wrote in message news:eJH8ylAVGHA.1236@xxxxxxxxxxxxxxxxxxxxxxx
If you run a DOS command line from the RUN window, the DOS window closes as soon as it has finished.
If you want the window to remain open, type "cmd" into run to first open the DOS window. Then type
in your DOS command.
If you want to use a BAT file or something like that, add a line for the "cmd" instruction.

"anon" <vxpy7do02@xxxxxxxxxxxxxx> wrote in message news:%237QdvQ7UGHA.5004@xxxxxxxxxxxxxxxxxxxxxxx
:
: <q_q_anonymous@xxxxxxxxxxx> wrote in message
: news:1143692827.438210.95440@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
: >
: > anon wrote:
: >> When I try to execute a DOS program or even something like a 'ping' the
: >> DOS
: >> window closes immediately upon termination of execution.
: >>
: >> Is there any way to keep the DOS window open?
: >
: > cmd /k ping www.google.com
: >
: > for DOS Programs accessed by clicking an icon. right clicking the icon
: > and clicking properties, should give some option somewhere to keep it
: > open. cmd /k might work for them too.
: >
:
: ***
: That is OK for the icon, but if I double click on a program icon (directly
: in the program folder) there is no shortcut option - and if I 'run from the
: start icon' there is no shortcut.
:
: If I 'run' a batch file - same thing.
:
: Any other suggestions?
: ***
:



.



Relevant Pages

  • Re: How do I...
    ... I initiated the BAT file from the Registry without any ... trying to get the "DOS CMD.EXE" window to either run ... >> file that contained the command worked. ...
    (microsoft.public.windowsxp.setup_deployment)
  • Re: DOS window control
    ... Right click on the Icon in the taskbar representing the open DOS screen and ... > I'm trying to run a DOS program via XP. ... The program comes up in a small window ...
    (microsoft.public.windowsxp.general)
  • Installing DOS
    ... Does anyone have experience installing just plain ol' DOS? ... Start up the PC where you want to install the application. ... opens a blank black window with the following words: ... my CD icon is greyed out. ...
    (microsoft.public.mac.virtualpc)
  • Re: getRuntime().exec problem in win2000
    ... you must not have used "command prompt" ... > in my experience you must have an 'exit' statement in the bat file. ... > because it will close your command window afterwards ... >> opens a dos window and quickly closes it. ...
    (comp.lang.java.programmer)
  • Re: Command Prompt
    ... > Been a while since I used DOS. ... >>Put a pause at the end of the bat file. ...
    (microsoft.public.windowsxp.general)