Running cmd and program parameters

  • Thread starter Thread starter tshad
  • Start date Start date
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
 
"David Candy" <.> wrote in message
cmd /k ping etc

cmd /? or type cmd in help.

That was what I was looking for,

Thanks,

Tom
 
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.
 
Back
Top