Command Line Parameter Reference

You can automate what BarTender does using command line parameters. The syntax of a command line is:

bartend.exe /F=partlist.btw /P /X

There is a space between the "bartend.exe" and the first parameter and all parameters begin with a forward slash. See below for examples, and refer also to Rules For Specifying Command Line Parameters and Using Spaces in File Names.

Brackets in the command line examples in the help system indicate optional material that is not required in every use of the command or the parameter. Do not ever include the brackets themselves. For example, the brackets in the preceding command line indicate that you can run BarTender without any parameters at all, in which case it will start in its default state.

Types of command lines:

Examples of BarTender Command Lines

Command Line

Action

bartend.exe /F=c:\Formats\ship.btw /P

Loads and prints ship.btw.

bartend.exe /F="lib://test1.btw" /P

Loads and prints test1.btw, which is stored in Librarian's repository.

bartend.exe /F=F1.btw /F=F2.btw /F=F3.btw

Loads the three specified documents.

bartend.exe /P

Prints all open BarTender documents.

bartend.exe /AF=F2.btw

Makes F2.btw the active document.

bartend.exe /AF /P /C=2 /D="xyz.dat"

Prints two copies of the active document using text file xyz.dat.

bartend.exe /MediaHandling=
"Action=Cut;Occurrence=AtEndOfPrintJob"

Sets the printer media handling settings to cut the label stock at the end of the print job.

bartend.exe /IDOC="xyz.idoc" /P

Prints all BarTender documents using IDoc xyz.idoc.

Related Topics