Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.