2

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.

infaustus
  • 133
  • 4

1 Answers1

2

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.

user9517
  • 115,471
  • 20
  • 215
  • 297