The Batch Mode function enables you to create a process and share it as a package. The package serves to run the contained process without user interaction, even if the process itself includes interactive tasks.
1. | Create a process as you see in the following figure: |
2. | To create a package, in the Command window, enter ::hw::automate::ExportProcessAsCommand mathtask mathtask help {c:\batchprocess}. For more details about this command, see External Interfaces. |
The Command window shows that the package is created for the process:
On your system, locate the package in the directory C:/batchprocess/mathtask. The package includes the following:
3. | From a text editor open the file: C:\batchprocess\mathtask\mathtask Package\mathtask Simple Wizard.tcl. |
The script should look something like this:
4. | From the text editor, make any required changes to the file, save the changes and then copy the file path. |
5. | In the Automate command window, enter the file path: source {C:\batchprocess\mathtask\mathtask Package\mathtask Simple Wizard.tcl} |
6. | The process from the package runs automatically: |
Any Automate user who has access to this package can run the process in the same fashion.