Command line parameters

Command line arguments

This page lists all available Labeljoy command line arguments, grouped by scope. Each argument is shown with its example usage, possible values, mandatory parameters, and detailed description.

All examples show only the command line arguments and must always be prefixed with the full path and name of the Labeljoy6.exe executable.
For example, assuming Labeljoy was installed in the default location, a complete print command would be:
"C:\Program Files (x86)\Delivery Tech Corp\Labeljoy 6\Labeljoy6.exe" /p C:\Users\John\Desktop\labels.lpa /rg 1:2

Note:
Except for basic print and open file arguments, all other command line switches require version 6.25.09.05 or superior.

Common Arguments

Open file
Parameter [Path and file name]
ExampleC:\Users\John\Desktop\labels.lpa
Possible valuesC:\Users\John\Desktop\labels.lpa Path and name of a Labeljoy file.
Mandatory parametersC:\Users\John\Desktop\labels.lpa Must be a valid file name pointing to a labeljoy file.
DescriptionOpens a file in Labeljoy.
Password
Parameter/pw
Example/p C:\Users\John\Desktop\labels.lpa /pw bXlwYXNzd29yZA==
Possible valuesbXlwYXNzd29yZA== Base64 encoded password.
Mandatory parameters /p, /e or [Path and file name]
DescriptionEnables you to pass the password for password protected files.
The password must be Base64 encoded.
Silent operation
Parameter/sl
Example/e C:\Users\John\Desktop\labels.lpa /em page /et C:\Users\John\Desktop\page export.pdf /sl
Possible values-
Mandatory parameters/p or /e
DescriptionEnables you to specify that the Print or Export operation must be carried out silently, no progress screen or error messages.
Only the custom data form will be shown, in case one or more Fill and print Reference is present.
Page range
Parameter/rg
Example/p C:\Users\John\Desktop\labels.lpa /rg 1:2
Possible values 1:2 A valid page range in the format of [START]:[END] or all to force all pages.
Both values must be contained between 1 and the page count for the Label file being printed.
[START] must be equal or lower than [END].
Mandatory parameters/p or /e
Description Enables you to specify a page range to export or print.
When not specified, the page range used during the last print/export operation is used.
For exporting operations, only applies if Export mode (/em) is page.

Print Arguments

Print
Parameter/p
Example/p C:\Users\John\Desktop\labels.lpa
Possible valuesMust be followed by a space and a valid Labeljoy file name.
Mandatory parameters
DescriptionPrints a file.
Printer name
Parameter/pn
Example/e C:\Users\John\Desktop\labels.lpa /pn ZDesigner GC420t (EPL)
Possible valuesA valid printer name installed in the system
Mandatory parameters/p
DescriptionEnables you to specify the name of the printer to be used.
When not specified, the last printer used or the default printer is used to print the document.
Print copies
Parameter/cp
Example/p C:\Users\John\Desktop\labels.lpa /cp 2
Possible valuesAn integer number specifying the number of copies to print.
Mandatory parameters/p
DescriptionEnables you to specify the number of copies (replicas) to print.
When not specified, 1 copy is printed.
Print in color or black & white
Parameter/bw
Example/p C:\Users\John\Desktop\labels.lpa /bw
Possible values1, 2
Mandatory parameters/p
Description Enables you to force printing in color or in black and white, if supported by the printer.
When not specified, the last setting is used, otherwise:
1 = Print in black and white.
2 = Print in color.
Print double sided
Parameter/ds
Example/p C:\Users\John\Desktop\labels.lpa /ds 1
Possible values1, 2, 3
Mandatory parameters/p
Description Enables you to specify double-sided print.
When not specified, the last setting is used, otherwise:
1 = Print single sided.
2 = Print double sided, flip on long edge.
3 = Print double sided, flip on short edge.
Print collate
Parameter/ct
Example/p C:\Users\John\Desktop\labels.lpa /ct
Possible values1, 2
Mandatory parameters/p, /cp
Description When printing multiple copies, it enables you to force collating copies, if supported by the printer.
When not specified, the last setting is used, otherwise:
1 = Do not collate.
2 = Collate.

Export Arguments

Export
Parameter/e
Example/e C:\Users\John\Desktop\labels.lpa
Possible values Must be followed by a space and a valid Labeljoy file name.
Must contain the Export mode (/em) and the Export target (/et) parameters.
Mandatory parameters
DescriptionExports a file.
Export mode
Parameter/em
Example/e C:\Users\John\Desktop\labels.lpa /em page
Possible valuespage, label, barcode
Mandatory parameters/e
Description Enables you to specify the type of export: Page export, Label export, Barcode export.
Must always be present.
Export target
Parameter/et
Example/e C:\Users\John\Desktop\labels.lpa /em page /et C:\Users\John\Desktop\page export.pdf
Possible valuesPath and name of the target file.
Mandatory parameters/e, /em
Description When the Field file name (/fn) parameter is specified, the file name is not used, only the target path.
Label set index
Parameter/si
Example/e C:\Users\John\Desktop\labels.lpa /em label /et C:\Users\John\Desktop\page export.pdf /si 1
Possible values1 to the number of label sets contained in the file.
Mandatory parameters/e, /et, /em label or /em barcode
Description Enables you to specify the label set index you want to export when /em is label or barcode.
Can be omitted and it ignored if the file only contains a label set.
Barcode index
Parameter/bi
Example/e C:\Users\John\Desktop\labels.lpa /em barcode /et C:\Users\John\Desktop\page export.pdf /si 1 /bi 2
Possible values1 to the total number of barcodes contained in the label set identified with /si.
Mandatory parameters/e, /et, /em barcode
Description Enables you to specify the barcode index you want to export when /em is barcode.
Can be omitted and it is ignored if the parent label set contains just one barcode.
Graphic format
Parameter/ef
Example/e C:\Users\John\Desktop\labels.lpa /em page /et C:\Users\John\Desktop\page export.pdf /ef pdf
Possible values ljr - Labeljoy Reader.
pdf - Vector PDF. (Available only when the program is activated).
rpd - Raster PDF. (Available only when the program is activated).
png - PNG format.
jpg - JPEG format.
bmp - Bitmap format.
gif - GIF format.
tif - TIFF format.
Mandatory parameters/e, /et, /em
Description Enables you to specify the graphic format to export to.
When not specified, the last setting is used or jpg.
DPI setting
Parameter/dp
Example/e C:\Users\John\Desktop\labels.lpa /em page /et C:\Users\John\Desktop\page export.pdf /dp 300
Possible values72 ~ 1200
Mandatory parameters/e, /et, /em
Description Enables you to specify the dpi value for raster file formats.
When not specified, the last setting is used or the default 72 dpi value.
Field file name
Parameter/fn
Example/e C:\Users\John\Desktop\labels.lpa /em page /et C:\Users\John\Desktop\page export.pdf /sa customer_name
Possible valuesMust be a valid field name included in the data source.
Mandatory parameters/e, /et, /em
Description Enables you to specify a field name to be used when generating multiple files.
Valid only if the Labeljoy file is linked to a data source and the export operation will result in multiple files being generated.
Open file
Parameter/of
Example/e C:\Users\John\Desktop\labels.lpa /em page /et C:\Users\John\Desktop\page export.pdf /of
Possible values1, 2
Mandatory parameters/e, /et, /em
Description Enables you to instruct Labeljoy to open the first exported file after the operation is complete.
When not specified, the last setting is used, otherwise:
1 = Do not open the first exported file.
2 = Open the first exported file.
Open target directory
Parameter/od
Example/e C:\Users\John\Desktop\labels.lpa /em page /et C:\Users\John\Desktop\page export.pdf /od
Possible values1, 2
Mandatory parameters/e, /et, /em
Description Enables you to instruct Labeljoy to open the target directory in File Explorer after the operation is complete.
When not specified, the last setting is used, otherwise:
1 = Do not open the target directory.
2 = Open the target directory.
Split PDF files
Parameter/sp
Example/e C:\Users\John\Desktop\labels.lpa /em page /et C:\Users\John\Desktop\page export.pdf /sp 2
Possible values1, 2
Mandatory parameters/e, /et, /em
Description When exporting a PDF file that generates multiple pages, it enables you to specify to create a file for each page, rather than a single file.
When not specified, the last setting is used, otherwise:
1 = Single file.
2 = Multiple files.
Include source file in Labeljoy Reader exports
Parameter/rs
Example/e C:\Users\John\Desktop\labels.lpa /em page /et C:\Users\John\Desktop\page export.pdf /rs 2
Possible values1, 2
Mandatory parameters/e, /et, /em
Description When exporting in Labeljoy Reader format (/ef ljr), it enables you to specify if the source Labeljoy file should be embedded in the resulting exported file.
When not specified, the last setting is used, otherwise:
1 = Do not include the source.
2 = Include the source file.
Skip creating the .mdb file.
Parameter/nm
Example/e C:\Users\John\Desktop\labels.lpa /em page /et C:\Users\John\Desktop\page export.pdf /nm
Possible values-
Mandatory parameters/e, /et, /em, /fn
Description When exporting a data-connected file and using a field to name the exported file (/fn), you can skip the creation on the mdb file containing the list of the files created for each record.