Home » Questions » Computers [ Ask a new question ]

Running bat file using Windows scheduler

Running bat file using Windows scheduler

I wanted to run a .bat file in Windows task scheduler, so I opened it, added a new task, browsed to the bat file, and... nothing happened.

Asked by: Guest | Views: 270
Total answers/comments: 2
Guest [Entry]

"I find it easier to just use the at command.

For example to run the batch file located at: C:\script.bat at 4 AM every Tuesday you would do the following in a command-prompt:

at 4:00 /every:T ""C:\script.bat"""
Guest [Entry]

"After looking at several related answers on SuperUser.com, and not wanting to use a workaround, I finally found the answer on StackOverflow here: stackoverflow.com/a/13173752/261405

The important piece from there:
At the 'Action' settings - ""Start in (Optional)"" option.

Without this, it would never work for me"