Creating an XML File to Run Commands in Batch Mode

To run commands in batch mode, you must enter them into an XML file with special tagging.

To make your batch file run smoothly:
  • Use the silent option with each command. See Using the Silent Option.
  • Specify all required parameters for each command.
  1. In a text editor, create a file with the XML extension.
  2. Open the file and enter these first two lines:
    <?xml version="1.0" encoding="UTF-8"?>
    <commands>
  3. Enter these lines for the login command:
        <command name="login" sequence="1">
            <option name="url" arg="DOECSocketListenerUrl" />
            <option name="pw" arg="DOECUserPassword" />
            <option name="u" arg="DOECUuser" />
        </command>
  4. For each command you want to execute, enter the information in an XML structure similar to this:
        <command name="commandName" sequence="sequenceInteger">
            <option name="optionNamel" arg="optionValue1" />
            <option name="optionName2" arg="optionValue2" />
            <option name="optionName3" arg="optionValue3" />
                ...
            <option name="optionNameN" arg="optionValueN" />
        </command>
    The sequence parameter controls the order in which the commands are executed.
  5. After the last <command> entry, terminate the file:
    </commands>