Running cmd and program parameters

T

tshad

Is there a way to run cmd.exe from a shortcut that will start a program?

I tried, as a test, to have it start C:\WINDOWS\SYSTEM32\cmd.exe ping
www.yahoo.com. All it did was bring up the command window.

Thanks,

Tom
 
T

tshad

"David Candy" <.> wrote in message
cmd /k ping etc

cmd /? or type cmd in help.

That was what I was looking for,

Thanks,

Tom
 
S

Stan Brown

Is there a way to run cmd.exe from a shortcut that will start a program?

I tried, as a test, to have it start C:\WINDOWS\SYSTEM32\cmd.exe ping
www.yahoo.com. All it did was bring up the command window.

cmd /k ping www.yahoo.com

The "/k" tells it to execute that command and then keep the prompt
window open.

You don't need to tell Windows where to find the command prompt.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top