Using the BardecodeFiler output template
The output template in BardecodeFiler controls how files will be created under the output folder. It can include any characters that are acceptable in file and folder names and tokens, which start with the % character. It can also include the “/” character which is used to indicate a folder.
The default output template is:
%VALUES_SEQ3
…which translates to the values of all barcodes found on a page, followed by an underscore and a unique 3 digit sequence number starting at 001.
Another way to ensure unique file names would be to use:
%VALUES%ORD
..which adds (N) if necessary to make the file unique.
Creating folders automatically is pretty easy – just use a “/” character somewhere in the template. For example, if you use the template:
%VALUES/%ORIG
…then you will be creating folders named after barcodes but keeping the original file name as used in the input folder.
It is quite OK to have multiple layers of folders…
%YEAR4/%MONTH/%DAY/%VALUES
…will file the output depending on the current year, month, day and barcode value.
Envrionment variables can also be included using the format:
%ENV(ENV_VARIABLE_NAME)
e.g %ENV(PATH)
Other tokens that may be used include:
%SUBFOLDER – the subfolder of the input file in the input folder.
%FVALUE – the value of the first barcode found in the document.
%VALUE – separate barcode values – one output for each value found on a page
%PAGE – page number in input file
%SEQ1 – sequence with no leading zeros.
%SEQ3 – sequence padded to 3 digits.
%SEQ6 – sequence padded to 6 digits.
%ORD – unique ordinal (N) if necessary.
%YEAR4 – year as 4 digits
%YEAR2 – year as 2 digits
%MONTH – month 01 to 12
%DAY – day 01 to 31
%HOUR – 00 to 23
%MIN – 00 to 59
%SEC – 00 to 59