-
Open Task Scheduler (press [Windows Key] and type "Task Scheduler")
-
Name your task something useful, like "Update Desktop Image"
-
In the "Triggers" tab, click [New]
-
Select "Daily"
-
Tick "Repeat Task Every: " and select your desired refresh interval from the dropdown menu (I've selected every hour)
-
Click [OK]
- Under the "Actions" tab, click [New]
- Find your python executable path, and put it in the Program/script box
-
For a conda environment, for example, this should be by default:
C:\Users[Your Name]\AppData\Local\conda\conda\envs[Environment Name]\pythonw.exe
-
Note: To stop the script from opening a terminal every time it is run, use pythonw.exe instead of python.exe
- In the "Add arguments (optional)" box, type the path to the python script in quotation marks, e.g.: "C:\Users[Your Name]\Downloads\desktop_background_script.py"
- Click [OK]
- Click OK to save your task