Just Barcodes CL Help - Batch Files
- A batch file is a text file with a .bat file name extension.
- In its most basic form, it just contains a list of commands which are run, one by one, when the batch file runs.
- You can run a batch file from the command prompt by typing its name (assuming the path is correct etc.) or by double-clicking it in Windows Explorer.
- The following examples assume that the program search path is set correctly. This should be the case after a normal installation.
Example - creating simple a batch file
- Using notepad, create a file that contains the following line:
jbccl -sym ean8 -data 1234567 -font Arial -outfile Test.bmp
- Save the file as test.bat
- If you double-click the file in windows explorer, it will create a bitmap file named Test.bmp containing an EAN-8 barcode.
Using a batch file with a settings file
- You could use a batch file with a settings file, e.g.
- The batch file could contain:
jbccl -sym ean8 -set MyData.txt -font Arial -delfile -outfile MyBarCode.bmp
and the MyData.txt settings file could contain:
- This way, you could update the data in the settings file then run the batch file to update the barcode (in MyBarCode.bmp)
- Note the use of the -delfile option. This attempts to delete the output file (MyBarCode.bmp) if the barcode generation fails for some reason, such as invalid data.
Standard Command Line Options
Copyright (c) 2006-2016 Neon Sine Software. All rights reserved.