How do I run another command in a cmd batch file?

Up vote 1 down vote favorite share g+ share fb share tw.

I have this command that I need to run cd /d C:\leads\ssh & C:\Windows\System32\cmd. Exe /E:ON /K C:\Ruby192\bin\setrbvars. Bat this opens the command prompt but I need to run this command in the prompt ruby C:\lead\leads.

Rb which will fire off a script.....but I have no idea what to add to my bat file to do this I tried the -f flag to tell it to run the command but no go....any ideas to what to do to make this run cd /d C:\leads\ssh & C:\Windows\System32\cmd. Exe /E:ON /K C:\Ruby192\bin\setrbvars. Bat -f ruby C:\lead\leads.

Rb pause windows batch batch-file cmd cmd. Exe link|improve this question asked Oct 12 '11 at 16:10Matt4,13741446 76% accept rate.

This would mean a simple change in the command you want to run. – Krystian Oct 12 '11 at 16:11 I need to run this script every 30 minutes so I added it to a bat file that is using windows task scheduler to run...so I need to tell my bat file to run the script – Matt Oct 12 '11 at 16:18.

Try the following batch file: @echo off cd /d C:\leads\ssh call C:\Ruby192\bin\setrbvars. Bat ruby C:\lead\leads.rb.

1 are you forgetting the C:\Windows\System32\cmd. Exe – Matt Oct 12 '11 at 16:16 1 no, cmd. Exe will be called automatically when the filename ends in .

Cmd or .bat. – Wimmel Oct 12 '11 at 16:19 awesome...thanks that did the trick – Matt Oct 12 '11 at 16:21 1 exactly what I meant in my comment, simply drop the cmd call :) well done Wimmel :) – Krystian Oct 12 '11 at 20:53.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions


Thank You!
send