Create a Batch Mode Package for a Process

Use the Batch Mode function 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:


    Figure 1.
  2. To create a package, in the command window, enter ::hw::automate::ExportProcessAsCommand math task 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:


    Figure 2.
    On your system, locate the package in the directory C:/batchprocess/mathtask. The package includes the following:


    Figure 3.
  3. From a text editor open the file: C:\batchprocess\mathtask\mathtask Package\mathtask Simple Wizard.tcl.
    The script should look something like this:


    Figure 4.
  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:


    Figure 5.
    Any Automate user who has access to this package can run the process in the same fashion.