Execute Command in Run Window

Mr Bob

Golden Member
Sep 6, 2004
1,757
12
81
Instead of opening a cmd window and typing in something like "ping anandtech.com"

I would like to type that into the run window, prior to opening up the command prompt.


I tried doing things like "Start -> Run -> " then typed:
cmd -> ping anandtech.com

but that doesn't automatically populate the cmd window with ping anandtech.com

Anyone know how to do this? I'm pretty sure it is possible.
 

Mr Bob

Golden Member
Sep 6, 2004
1,757
12
81
Nevermind, figured it out!

Add a /k to the cmd command and it works

So:

cmd /k ping anandtech.com

Would work in the example above.