Keep the command prompt open after using Run

by
Inf

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. πŸ™‚

  • It doesn’t for me. Must be a bug/settings somewhere… πŸ™‚

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

  • Nifty … but I use Linux at home now πŸ˜›

  • InF

    Huh @ CM6?

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

    @Bruno: Good choice!

  • Nice tips. πŸ™‚

  • yirua

    wonderful. Thanks.