Take the 2-minute tour ×

How do I run bat file inside cmd using tash scheduler. I've tried this one C:\windows\system32\cmd.exe C:\synchronization.bat And doesn't working.

share|improve this question
I found working method cmd /k mybatfile.bat –  infaustus May 25 '12 at 7:55
Please add this as an answer below and accept it when you can ;-). –  Bart De Vos May 25 '12 at 8:37

1 Answer 1

up vote 2 down vote accepted

You can use

cmd /c mybatfile.bat

to run a command and terminate the cmd shell or

cmd /k mybatfile.bat

to run a command and keep the cmd shell.

share|improve this answer

Your Answer


