Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

 
discard

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.