Running batch processes
To run configured batch processes, use BQSProcessManager.exe. You can run the program manually from a command line interface, or you can schedule it to run automatically in the Windows Task Scheduler.
The BQS Process Manager takes two arguments: the name of the batch process to run and a true/false argument that indicates whether the process is being run attended. If you specify true, the BQS Process Manager shows a progress dialog in the console window. You can cancel the process by pressing the ESC key.
You can also run an attended process from the Task Scheduler, but the recommended usage is to run attended from the command prompt, and unattended from the Task Scheduler.
For example, if you’ve configured an address synchronization batch process called AddrSync, you would use this command to run the process from the command line: BQSProcessManager AddrSync true
You can also run multiple batches from the Task Scheduler, either by creating a separate task for each process or by creating a single batch file containing all of the processes to run. If you use a batch file, the return code in the Task Scheduler window will be the result of the last batch completed.
At the end of the process the BQS Process Manager returns an integer exit code. The codes are listed below.
- 0: Success
- 1: Unknown error
- 2: Incorrect number of arguments
- 4: Invalid Attended argument value
- 8: Invalid Batch Name argument value
- 16: Unable to determine ESRI version
- 32: Unable to bind to ESRI license
- 64: Batch process failed