Task Scheduler Setup
Introduction
This page explains how to run SR-BRIDGE (EXE) from Windows Task Scheduler.
Use this setup when you want SR-BRIDGE to run automatically at a fixed time instead of starting it manually every time.
Overview
Task Scheduler lets you create a scheduled job in Windows and point it to the SR-BRIDGE executable.
You can also pass arguments to control what the app should process when the task runs.
Purpose of this page
This guide helps you:
- Create a scheduled task in Windows
- Set the task name and permissions
- Choose when the task should run
- Enter the SR-BRIDGE executable path
- Add the correct command-line arguments
- Verify that the task runs successfully
Before you begin
Make sure you have:
- The full path to the SR-BRIDGE EXE file
- The correct task arguments for your use case
- Permission to create or edit scheduled tasks on the computer
Step 1: Create the task
- Open Task Scheduler from Windows Start.
- Click Create Task in the Actions pane.
- Give the task a clear name such as SpaceRivers BRIDGE.
Step 2: Set the General tab
Use the General tab to define how Windows should run the task.
Recommended settings:
- Name:
SpaceRivers BRIDGE - Run whether user is logged on or not
- Run with highest privileges
These settings help the task run reliably even when you are not actively using the desktop.
Step 3: Set the Triggers tab
Use the Triggers tab to choose when the task should start.
- Click New.
- Select On a schedule.
- Choose the schedule type you need, such as daily.
- Set the start time.
- Set the repeat pattern if needed.
- Click OK.
Pick a time that matches your business process, such as an early morning run or an off-hours sync.
Step 4: Set the Actions tab
Use the Actions tab to tell Windows which program to run.
- Click New.
- In Program/script, enter the full path to the SR-BRIDGE EXE file.
- In Add arguments, enter the command that matches the data you want SR-BRIDGE to process.
- Click OK.
Common argument examples
Single job
Use this when you want SR-BRIDGE to run for one job-related task:
--Task Job
Multiple jobs
Use this when you want SR-BRIDGE to run for more than one job-related data type:
--Task Job Phase Cost-Code Actual-Cost
All jobs
Use this when you want SR-BRIDGE to process everything supported by the task:
--all
Choose the argument set that matches your workflow. If you are not sure which one to use, confirm it with your administrator before saving the task.
Step 5: Set the Conditions tab
Use the Conditions tab to control when Windows is allowed to run the task.
Recommended checks:
- Uncheck Start the task only if the computer is on AC power
- Uncheck Start only if network connection available if your process does not require that restriction
These options help the task run more consistently on desktops that may not always be plugged in or connected in the same way.
Step 6: Set the Settings tab
Use the Settings tab to control how the scheduled task behaves.
Recommended checks:
- Tick Allow task to be run on demand
Optional settings:
- Stop the task if it runs longer than your preferred limit
- Restart the task if needed, up to the number of retries your team allows
Click OK after you finish.
Step 7: Test the task
After saving the task, run it manually once from Task Scheduler.
Then check:
- Whether the task starts without errors
- Whether the Last Run Result shows success
- Whether the SR-BRIDGE output or log files are created as expected
- Whether the app updates the expected configuration or sync output
How to confirm it worked
The task is working correctly when:
- It runs at the scheduled time
- The selected SR-BRIDGE arguments are passed correctly
- The task finishes without errors
- The related log or output files show the expected result
If the task does not behave as expected, review the EXE path, the arguments, and the trigger time.
Notes and Tips
- Use a simple task name that is easy to recognize later.
- Double-check the EXE path before saving the action.
- Choose only the arguments you need for that schedule.
- If the task runs too early or too late, adjust the trigger time.
- Keep the task permissions consistent with the account that owns the SR-BRIDGE setup.
Troubleshooting
The task does not start
Check that the EXE path is correct and that the scheduled time has passed.
The task starts but does nothing
Review the command-line arguments and confirm that they match the job you want to run.
The task fails with an error
Check the task permissions, the EXE file path, and the selected trigger or condition settings.
The run result is not successful
Open the task history and compare it with the SR-BRIDGE logs to understand what happened during the run.