Setting Up Windows Task Scheduler
This is a post designed to show how easy it is to setup a windows task to run nightly. In this case, I want to run a series of python scripts to import data and insert it into our database.
Start the Task Scheduler Windows Interface
- Go to the Control Panel -> System & Security -> Administrative Tools
- Open the Task Scheduler
Add Python Script
- Under “Actions,” click “Create Task”
- Under “Actions” tab, click “New”
- Set “Program/script” to python.exe path and
- Set “Add arguments (optional)” to location of python script (.py file)
Set Triggers
- On “Triggers” tab, click “New”
- Set the date / time information for when you would like the trigger to run