Calling Shared Batch Files
This feature is new for adTempus version 4.
When you run a batch file stored in adTempus using the Program Execution Task, you can make other batch files stored in adTempus available for your batch file to call.
To do this, the batch file you want to call must first be created as a shared batch file (see below).
The batch file editor includes a Call shared batch drop-down list that includes all shared batch files. When you click this button, the editor will insert a batch call command at the cursor location in the editor to call the selected shared batch file. It also adds a link to tell adTempus to make that batch file available at runtime.
When the job executes, any shared batch files referenced by your batch file are written to a temporary folder whose path is stored in the ADTJobTemp environment variable.
Sharing a Batch File
New Batch File
If you are creating a new batch file and want it to be shared (available to other jobs), you can create the batch file in either of these ways:
- From the Shared Scripts view.
- From the Program Execution Task properties window. Select the shared batch file target type, then click the button to create a new batch file.
Sharing an Existing Batch File
If your Program Execution Task already has a non-shared batch file and you want to make it shared, click the Open in editor button in the batch file editor. This will open the full Script Editor window, where you can mark the batch file as shared and set security options for it.
Changing Shared Batch File References
When you insert a shared batch file call from the batch editor, the editor automatically adds a reference to the shared batch file, which causes adTempus to extract the batch file to a temporary folder at runtime.
If you no longer need to reference a shared batch file, or want to reference a shared batch file without inserting a call to the file using the editor, you can add or remove Included Batch Files in the script editor. If you are editing your batch file in the smaller batch file editor in the Program Execution Task properties window, click the Open in editor button to display the full editor where this list is available.