Re: Holding cmd window open

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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@xxxxxxxxxxxxx> wrote in message
news:c1.2c.2wcgFX$0IL@xxxxxxxxxxxxxxxxxxxxxx
>
> 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?
>
>


.



Relevant Pages

  • Re: Context Menu Handlers
    ... window opens normally,it only happens when I go to my programs and try to ... everything in the start menu is already a shortcut. ... Well you have to enable dragging and dropping in your start menu then. ...
    (microsoft.public.windowsxp.general)
  • Re: command prompt
    ... Right click the new cmd.exe shortcut | Properties | ... Microsoft Windows XP ... Changes the cmd.exe command prompt. ... Set the Command Processor Appearance in Windows XP ...
    (microsoft.public.windowsxp.general)
  • http://"%20 gets added as prefix from shortcuts
    ... has a URL as the target (desktop, Quick Launch, Outlook, etc.), when the IE ... window opens, the address bar shows http://"%20 to the left of whatever the ... If there is already an Internet Explorer window open, ... the shortcut works correctly and the page at the URL ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: http://"%20 gets added as prefix from shortcuts
    ... "Bruce Sanderson" wrote: ... > window opens, the address bar shows http://"%20 to the left of whatever the ... > If there is already an Internet Explorer window open, ... > the left of the URL, the shortcut works correctly and the page at the URL ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: How to open a command prompt?
    ... Start, Programs, Accessories, Command Prompt. ... Open Task Manager, New Task, type cmd.exe, press enter. ... Create a shortcut on the desktop, ... rename to .bat and run the batch file (or shell script). ...
    (microsoft.public.windowsxp.general)