Blog Entry

Keep the command prompt open after using Run

March 17, 2009 by InF, under Tips and Tricks.

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. :)

You might also be interested in:

5 Responses to “Keep the command prompt open after using Run”

17.03.09#1

Comment by carrotmadman6No Gravatar.

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

18.03.09#2

Comment by ChayaNo Gravatar.

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

18.03.09#3

Comment by BrunoNo Gravatar.

Nifty … but I use Linux at home now :P

18.03.09#4

Comment by InFNo Gravatar.

Huh @ CM6?

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

@Bruno: Good choice!

19.03.09#5

Comment by Kurt AvishNo Gravatar.

Nice tips. :-)

Leave a Comment








RSS feed for comments on this post