Holding cmd window open

  • Thread starter Thread starter johnsuth
  • Start date Start date
J

johnsuth

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?
 
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.
 
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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

.CMD questions 7
CMD window at startup 5
Windows Vista how to run app on exit of cmd 7
cmd command 1
CMD Problem 7
I can not run DOS programs since last XP update 3
Use Run as... on a .cmd-file 3
How to hide command window? 6

Back
Top