Quantcast
Viewing all articles
Browse latest Browse all 2

Task scheduling a batch command

Hi,

if you ever would start a batch command by Windows task scheduler you might wonder, why the command isn’t executed if noone is logged in. I run in this issue while migrating a file server. I wanted to do a synchronize job every night but scheduling only succeeded when I was logged in.

If you want to do this automated without login, you’ve to pass the commandline as parameter in the “Action” section:

Action: Start a program
Settings: program / script: “C:\Windows\System32\cmd.exe”
Add arguments (optional): /C C:\batch.bat”

Image may be NSFW.
Clik here to view.

Cheers,

Chris


Image may be NSFW.
Clik here to view.
Image may be NSFW.
Clik here to view.

Viewing all articles
Browse latest Browse all 2

Trending Articles