Running a Batch from the Command Line Using CATBatchStarter

If you already have an XML file containing all the necessary inputs, this parameter file can be used later on to run the batch through the CATBatchStarter command. The example below uses only the -input option. To learn more about the other available options, see CATBatchStarter Options.

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

    where n is the current release number.

  2. Run the following command:CATBatchStarter -input xml_file

    where xml_file is the path and name of the XML file.

    For instance:

    CATBatchStarter -input e:\users\my_parameters.xml

  3. To check if the batch executed correctly, access the folder c:\temp\.

    A .txt file named "BatchMonitorResults_" suffixed with the hour at which the batch was run (e.g. "BatchMonitorResults_8.46.34.txt") gives you information on the batch execution and indicates the folder where the reports generated by the batch execution are stored.

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

    Three files are created:

    • A report in text format named batchIDLOG.txt
    • A report in XML format named batchIDLOG.xml
    • A log containing the output named batchIDOUTPUT.xml.

    where batchID is the number identifying the batch.

    Tip: You can modify the default storage location of these files by exporting the following variable:

    set BATCH_HOME=new_path (on Windows)

    where new_path is the path of the new storage location.