Running the Generic Batch

You can use the Generic Batch to run non-interactive executable files.

This task shows you how to:


Before you begin: The Generic Batch is not relevant for running executable files with a dedicated user interface (such as iexplorer.exe).
Related Topics
Running Batches Using the Batch Monitor

Access the Batch Interface from the Command Line

You can run the CATUTIL command to access the Generic Batch interface.

  1. Access the default installation folder C:\Program Files\Dassault Systemes\Bn\OS_a\code\bin .

    (Where n is the current release number).

  2. Still in the default folder, enter the command CATUTIL -Name "Generic Batch".

The Generic Batch opens.

Access the Batch Interface from the Batch Monitor

The Batch Monitor provides an alternate method to access the Generic Batch interface.

  1. Access the Batch Monitor, either from the command line, or from a V6 session.

  2. In the Batch Monitor window, double-click Generic Batch from the list:



    Tip: Another method to access the batch interface is to
    • Right-click Generic Batch in the list then select New parameter file.
    • Click Generic Batch in the list then select File > New parameter file.

Define the Batch Parameters

Before running the Generic Batch, you must define the parameters to be applied.

Note that the batch-specific online documentation can be accessed directly from the Generic Batch interface by clicking in the top-right corner.

  1. Click to open the file selection dialog box which lets you select the executable file (*.exe) of your choice.

  2. Optional: Enter the arguments to be used in the Argument(s) box.

    For instance, you can enter -h to display help information, or you can enter the folder in which the executable should be run (e.g. e:\users).

  3. Click Run to start the batch.

  4. Access the Processes tab in the Batch Monitor window to display information on the batch execution:



  5. Still in the Processes tab, double-click the line corresponding to the batch you have just run (or right-click it and select Results).

    The results of the batch execution are displayed:

    The following information is displayed in the Results window:

    • Path of the executable file. This path is the one you specified in the Executable file box ("C:\Program Files\mksnt\mksnt\ls.exe" in our example).
    • Result. In our example, we have a list of all the files stored in e:\users.
    • Arguments ("e:\users" in our example).
    • Return code (rc). "0" means that the batch executed correctly. Any other return code means that an error occurred. In that case, refer to the dedicated documentation for more information.

  6. Optional: Click Save to store your results in the folder of your choice.

    The file formats available are .txt and .xml.

    Important: This file is different from the one you save from the batch interface: the Save button in the Batch Monitor window lets you save the batch results (i.e. the data displayed in the Results window) whereas the Save button available in the Generic Batch window lets you save the batch parameters.

  7. Click Close to close the window and go back to the Batch Monitor.

  8. To read the reports generated by the batch execution, access the folder c:\temp\batchID.