I show how to make a Python script run at a scheduled time in Windows using Task Scheduler.
1. Task Scheduler, Create Task
2. Give the Task a title
3. Go to Actions
4. CMD, Python, import sys, sys.executable (this tells you what the Program/script field should be
C:\Users\admin\AppData\Local\Programs\Python\Python38-32\python.exe
5. Arguments: name of the python script (like run.py)
6. Start in: dir location of python script (like: C:\Users\admin\Documents\my_pyhton_project)
7. Go to Triggers, Daily
8. Test the script by running it.
コメント