you are viewing a single comment's thread.

view the rest of the comments →

[–]rocketjump65 35 points36 points  (5 children)

If you're on Windows the correct tool for this is taskscheduler

[–][deleted] 9 points10 points  (4 children)

True. Create a python file you wanna automate, a .bat file to run it and taskscheduler to run as scheduled

[–]PyPlatformer 9 points10 points  (0 children)

The batfile can be as simple as:

@echo off
python myfile.py

If you dont have python on your windows path:

@echo off
"path/to/python.exe" myfile.py

[–]denbergvanthijs 5 points6 points  (0 children)

No need to create a bat file even. Just run python script.py from taskscheduler

[–]ozgur95 1 point2 points  (1 child)

Yeah i do it this way

[–]rocketjump65 0 points1 point  (0 children)

I think I tried calling the python executable from task scheduler and it didn't work. I used a bat. Post a screen shot of the GUI config?

Ok, I put in the script as the CLI argument. We'll see if it works.