Search

Rss Posts

Rss Comments

Login

 
» Hide Sidebar
GeekScribes » Tips and Tricks » Keep the command prompt open after using Run

Keep the command prompt open after using Run

If you are a Windows user, you know that sometimes you really need to make use of the Command Prompt, for things like “ping” or “tracert”. Unless you are a GUI fanatic.

But have you noticed that sometimes when you type a command in the Run box, the prompt closes immediately after execution? There must be a way to keep it open, right?

Today, I will share that trick with you, and it’s really simple to do.

First, you need to see what I mean. Type “ping google.com” in the Run box and type enter or press Ok. The prompt should close after execution of the ping, not giving you time to see the results.

If this has ever happened to you (it does for me, on Windows Vista), then try this:

Before you type your command, put in “cmd /k” before.

For example, if “ping” closes for the prompt after execution, try “cmd /k ping google.com” or any other address.

I have tested on WinXP and Vista. Both work. Hope this is useful to you someday. :)

Other interesting posts:

Share on:
  • http://www.themediaguru.co.cc carrotmadman6

    It doesn’t for me. Must be a bug/settings somewhere… :)

  • http://www.chaya.fowdar.com/ Chaya

    Unfortunately or fortunately (as you might take it), I am a GUI fanatic*shy*

  • http://blebon.blogspot.com Bruno

    Nifty … but I use Linux at home now :P

  • http://www.geekscribes.net InF

    Huh @ CM6?

    What did you do? I just tested at home on XP and Vista, both work! :s

    @Bruno: Good choice!

  • http://www.islandcrisis.net Kurt Avish

    Nice tips. :-)

  • yirua

    wonderful. Thanks.