Using Windows Task Scheduler with Batch Mode
Run export and import processes without starting the Windchill Requirements Connector user interface with automatic time schedule.
A valid roundtrip configuration and a batch file to run the desired operation has to be prepared beforehand (please refer to: Using the batch mode.)
This section describes how the batch mode of Windchill Requirements Connector can be automated by using the Windows Task Scheduler.
1. Start the Windows task scheduler via Start > All Programs > Accessories > System Tools > Task Scheduler
Figure 331. Windows Task Scheduler
2. Create a new task by selecting Create Task ... and fill in the general settings
a. Provide Name and a short Description
b. Change the User to the one that should run the task e.g. local Administrator
c. Change the setting to Run whether user is logged on or not and tick the Do not store password option so that the process can run unattended while the user is not logged in.
Figure 332. Task general settings
3. Setup a trigger to be used for the schedule by selecting New... and defining the values accordingly e.g. Daily at 14:00:00
Figure 333. Trigger setup
4. Define action that should be triggered on the defined schedule by selecting New...
a. Set the Action to Start a program
b. Browse... to the path that contains the batch file to be executed and select it, e.g. "C:\Program Files\PTC\Windchill Requirements Connector\ExportExample.bat"
c. Fill in the path to your batch file at Start in (optional), e.g. C:\Program Files\PTC\Windchill Requirements Connector\
* 
Make sure you use “ “ in the Program/script field and that you do not use “ “ within the Start in (optional) field
Figure 334. Action setup
5. Confirm all your settings with Ok and your task will be created
Figure 335. Task created
* 
Make sure that Windchill Requirements Connector is not started when he task is triggered otherwise the batch process will not run.
Once the defined schedule is reached the batch file will be executed. After the process has finished you can start Windchill Requirements Connector and see the result within the audit section
Figure 336. Batch mode run by Task Scheduler
Was this helpful?