How to configure the Windows Task scheduler to launch a bat file

  • Go to : Adminstrative Tools > Task scheduler
  • Create a new task
  • Specify the trigger in the second tab
  • Specify the action in the third tab, like this :

Action : start a program
Settings :
– program/script : cmd
– add argument : /c myscript.bat
– start in : d:\myfolder

2019-03-05_10h14_04

Remarks :
– /c is an argument of the cmd command, meaning : “Carries out the command specified by string and then terminates”
– d:\myfolder = the drive and folder containing the myscript.bat

Leave a comment