fsp_scripts/documentation/scheduled_task.md

16 lines
919 B
Markdown

# Setting up a scheduled task in Windows
1. Open "Task Scheduler"
2. Click "Create Task" in right side bar
3. Enter Task name and select "Run whether user is logged in or not"
![Create Task](/Screenshot_20250903_111521.png "Create Task")
4. Go To "Triggers" tab and add a trigger with the following parameters
![Create Trigger](/Screenshot_20250903_111624.png "Create Trigger")
5. Go To "Actions" tab and add an action
![Create Action](/Screenshot_20250903_111712.png "Create Action")
6. Use the browse button to select the "run_make_reservations.bat" script
7. Enter the path of the fsp_scripts dir in the "Start In" field (your path will be different than the screenshot)
8. Click OK and verify task is listed with a status of "Ready"
9. Each time the script runs it will dump it's text output to a file called reservations.log in the fsp_scripts directory. Check this regularly to make sure the script is behaving