BTXML Script Commands |
The following BTXML script commands are supported. For more information about how to use and format BTXML scripts, refer to
/XMLScript=<xml_script>
Runs a BTXML script, where <xml_script> can be either a BTXML file name or raw BTXML script text.
When you specify BTXML files, multiple /XMLScript command line switches can be specified, as follows.
BarTend /XmlScript=d:\docsmyfile1.btxml /XmlScript=c:\docs\myfile2.btxml
/XmlScript=”c:\docs\my file with spaces.btxml”
When you use raw BTXML script text, only a single /XMLScript parameter is supported. This parameter must be inside double quotation marks, and it must be the last parameter on the command line, as follows.
BarTend /XmlScript= “<XMLScript Version="2.0"> <Command> <Print> <Format>c:\docs\myFile.btw</Format> </Print> </Command> </XMLScript>”
|
BarTender examines the first character inside the quotation marks. If the first character is a left angle bracket (<), BarTender determines that it contains raw BTXML text. Otherwise, BarTender determines that it contains a BTXML file. |
/XMLScriptFile="xml_file"
Runs BTXML script that is contained in the file that is located at the specified path.
|
/XMLScriptFile is obsolete as of BarTender 9.10. This command-line parameter is still supported; however, we recommend that you use the replacement command-line parameter instead: /XMLScript. |
/XMLScriptFileDelete
Causes the deletion of all BTXML script files that are specified by the /XMLScript or /XMLScriptFile command after the BTXML script runs.
BarTend /XMLScriptFileDelete /XmlScript=d:\docsmyfile1.btxml
/XmlScript=c:\docs\myfile2.btxml
/XmlScript=”c:\docs\my file with spaces.btxml”
Related Topics