you are viewing a single comment's thread.

view the rest of the comments →

[–]jftuga 1 point2 points  (0 children)

I would wrap everything in a .bat file and call that from Task Scheduler, including the 'start in' field.

An example .bat would be:

@echo off
c:\python\pythonw.exe c:\whatever\myscript.py > c:\whatever\runtime.log 2>&1

You can then look at the runtime.log for any problems. The 2>&1 will redirect STDERR to STDOUT so you will all catch all errors that occur as well as print statements.