Scheduling Python scripts as Scheduled Tasks

When scheduling python scripts as Scheduled Tasks in Windows, take note that although you specify the script with arguments eg :

kl_ofm.py -g -v

When the scheduled task runs, it runs as kl_ofm.py without the arguments.

The above is something to take note of when scheduling Python scripts.

 

One option around this is to put kl_ofm.py -g -v into a batch file and schedule the batch file as the job to run.

Custom Search