Holding cmd window open
johnsuth@nospam.com.au
07-09-2005, 11:24 PM
Many MS tools have an .exe name and a cmd window icon. When I double click on the icon to run the tool, the cmd window opens, the program runs, and the window closes before I can read the output.
How can I hold the window open to enable reading the output?
johnsuth@nospam.com.au wrote:
> Many MS tools have an .exe name and a cmd window icon. When I double click on the icon to run the tool, the cmd window opens, the program runs, and the window closes before I can read the output.
>
> How can I hold the window open to enable reading the output?
>
>
Start | Run. Type in cmd, click ok. Then in the command box type the
command.
--
Rock
MS MVP Windows - Shell/User
David Candy
07-09-2005, 11:24 PM
don't double click the file.
--
----------------------------------------------------------
<johnsuth@nospam.com.au> wrote in message news:c1.2c.2wcgFX$0IL@smith.microsoft.com...
>
> Many MS tools have an .exe name and a cmd window icon. When I double click on the icon to run the tool, the cmd window opens, the program runs, and the window closes before I can read the output.
>
> How can I hold the window open to enable reading the output?
>
>
Richard Urban
07-09-2005, 11:24 PM
Create a shortcut to the command prompt on the desktop. Name the shortcut
for the task.
Ex: Check Drive C
Now go to the shortcuts properties. At the end of the initiation string (on
the target line) enter a "space". Then type /K. Then enter another space.
Then type your command.
Example: %SystemRoot%\system32\cmd.exe /k chkdsk c:
This will open the command prompt, run chkdsk on drive C, and keep the
window open till you X out of it!
Move the shortcut wherever you want it to finally be.
--
Regards,
Richard Urban
aka Crusty (-: Old B@stard :-)
If you knew as much as you think you know,
You would realize that you don't know what you thought you knew!
<johnsuth@nospam.com.au> wrote in message
news:c1.2c.2wcgFX$0IL@smith.microsoft.com...
>
> Many MS tools have an .exe name and a cmd window icon. When I double
> click on the icon to run the tool, the cmd window opens, the program runs,
> and the window closes before I can read the output.
>
> How can I hold the window open to enable reading the output?
>
>
Holding cmd window open