Barcode command line

Generate barcodes at the command line

Barcodes an der Kommandozeile You can use the ActiveBarcode command line tool to create barcode images files directly from the command line. E.g. use it in batch or script programs.

The commandline tool is included in the ActiveBarcode program package. When you setup ActiveBarcode to your system, the commandline tool also will be installed. You can find the tool named barcodeimage.wsf in the folder you installed ActiveBarcode to. General this is c:\programs\ActiveBarcode.

Highly accurate barcodes
Highly accurate barcodes
At the command line
At the command line
Bitmaps and vector graphics
Bitmaps and vector graphics
Versatile in use
Versatile in use


Example An example: The following call of the tool will create a 400x200 pixels sized PNG image file named ean.png with an EAN-13 barcode encoding "192837465012".
"%ProgramFiles(x86)%\ActiveBarcode\barcodeimage" ean.png text=192837465012 typename=ean13 width=400 height=200
One more example: The following call of the tool will create a 500x100 pixels sized PNG image file named code128.bmp with an Code 128 barcode encoding "Hello World".
"%ProgramFiles(x86)%\ActiveBarcode\barcodeimage" code128.bmp "text=Hello World" type=14 width=500 height=100
Powershell: If you want to use 'barcodeimage' with the Microsoft Windows PowerShell, you have to call it using 'cscript'. See this example:
cscript "${env:Programfiles(x86)}\ActiveBarcode\barcodeimage.wsf" code128.bmp "text=Hello World" type=14 width=500 height=100

Command line parameters for the console

barcodeimage filename [Parameter]
The following paramters can be used:


Example: -text=123456789012
characters to be encoded.
You can enter control codes in human readable form like this: {CR}, {LF}, ...


Example: -type=0
barcode type, referenced by an indexed number


Example: -width=500
width in pixels


Example: -height=500
height in pixels


Example: -alignment=2


Example: -borderwidth=10
borderwidth in pixels


Example: -borderheight=1
borderheight in pixels


Example: -notchheightinpercent=25
the notch height in %


Example: -showtext=off
no textline under the code


Example: -foreground=000000
(example is black)
sets the foreground color
hexadecimal RGB as RRGGBB


Example: -background=FFFFFF
(example is white)
sets the background color
hexadecimal RGB as RRGGBB


Example: -fontname=arial
font for the text line


Example: -fontsize=8
font size


Example: -fontbold=on
font bold (on/off)


Example: -fontitalic=on
font italic (on/off)


Example: -fontunderline=on
font underline (on/off)


Example: -fontstrikeout=on
font strikeout (on/off)


Example: -filetype=bmp
file type of image
(valid values: bmp, jpg, png, tif, tga, gif, wbm, pbm, pgm, ppm, xpm, wmf, emf)
Default: auto detect by extension of filename


Example: -colordepth=24
colordepth of the image file
(valid values: 1,8,16,24,36)


Example: -flags=0x80
flags for the image file


Example: -angle=180
rotates the image file
(valid values: 0-359)


Example: -dpi=300
resolution in DPI for jpg, png, tif & bmp files


Example: -echo=off
off: display no messages
errors: display only errors
verbose:display all messages and open barcode in ImageView

| Home | Shop | Download | E-Mail | Privacy Policy | Imprint | Version 6.5.0
Copyright ©
Frank HornActiveBarcode Generator
Web design: szBubble
Copyright © Frank Horn
Lars SchenkActiveBarcode Object
Web- & server component
Command line
Copyright © Lars Schenk

All trademarks and product names mentioned are the property of their respective owners.

We use cookies to provide you with the best experience and functionality on our website. By using our site you agree to this. read more >