Lesson5:Command File Interpreter
[Pages:13]Lesson 5: Command File Interpreter
W HAT YOU WILL LEAR N In this lesson you will learn about: n Command files n Command file format and commands n Configuring and executing command files to print labels
automatically
Label Design Tools Training Guide
Page 71
TEKLYNX INTERNATIONAL
Command Files
Overview
The Command File Interpreter is a command file analysis tool, with which labels can be printed automatically. These command files (with a .cmd extension) are ASCII-type files. Once interpreted by the Command File Interpreter, the content of these files makes it possible to load a label in CODESOFT, fill the variable data fields (variable label form), and print a specific number of labels.
Command files can be used to transfer information generated by other systems or other computers, such as a central server or a mini-computer. For example, a centralized management application can control the printing of labels using a command file.
Page 72
CODESOFT
LESSON 5: COMMAND FILE INTERPRETER
Command File Format
Guidelines
There are many commands that can be issued in command files. Follow these guidelines when writing the command file: n Be careful to include the spaces. n Using quotation marks (" ") around field names is optional, unless
you are adding spaces in the fields. n Command files are NOT case sensitive.
Sequence of commands
In a command file, each batch normally begins with the LABELNAME command and finishes with LABELQUANTITY. All other commands for that label should be between these two commands. After the LABELQUANTITY command, you may add the LABELNAME command for the next label to be printed.
Label Design Tools Training Guide
Page 73
TEKLYNX INTERNATIONAL
Command File Commands
LABELNAME
This command selects the name of the label to be printed and it should be located in the first line of a command file. The command can appear several times in the same command file, to print different labels. If the same label is to be printed again in a command file, you do not need to repeat this command every time: the last label printed will be processed again with the new data. For example:
LABELNAME = "label_file_name.lab" LABELNAME = "c:\labels\sears.lab"
FIELD_NAME
There should be an assignment line in the command file for each variable field in a label (form field). The name of the field should be identical to that used in the command file. Spell the label field name correctly and enter the value for the variable data after the equals sign in quotes.
If a label field is left empty in a command file containing several labels, the value for this field will be replaced by the last value used in the command file. To leave a field empty, enter a void character (empty quotes "") in the string. For example: FIELD = "" For example:
FIELD_NAME = "field_value" PART_NUM = "836773"
PRINTER (optional command)
This command specifies the printer to be used. If this command is not included, the default printer will be used. For example:
PRINTER = "Printer_name,Port_name:" (The syntax should be the same as that used in the Print Manager; check if letters are in upper or lower case.)
PRINTER = "Datamax DMX 430,COM2:"
Page 74
CODESOFT
LESSON 5: COMMAND FILE INTERPRETER
Command File Commands continued
LABELQUANTITY
This command sets the number of labels to be printed. This command line should be located at the end of each definition of a label to be printed. The label will be printed automatically once this command is activated. For example:
LABELQUANTITY = "quantity_to_print" LABELQUANTITY = "5"
QUITAPP
This command will immediately terminate the execution of a file and stop the program. It should therefore appear at the end of a command file. If this command line does not appear in the file, the program will remain open.
Label Design Tools Training Guide
Page 75
TEKLYNX INTERNATIONAL
Creating Label Models
Overview
We will first create two label models in CODESOFT: Odette.lab and Palette.lab.
Procedure: Create label models
n Create the Odette.lab and Palette.lab labels using the following form variables.
Odette.lab Receiver1 Receiver2 Receiver3
NetWt NumBox Description LotNum PartNum GrossWt LabNum ModLevel SupplPartNum SupplierAdd DeliveryAdd Supplier DocNum Quantity
Date
Palette.lab sscc
Content Batch BestBefore Quantity
Page 76
CODESOFT
LESSON 5: COMMAND FILE INTERPRETER
Generating Command Files
Overview
You must generate command files for each of the two label models in order to be able to print them later.
Procedure: Generate command files
n Below, you will find an example of a command file for each label. The printers designated in the Printer variable are those associated with the Command File Interpreter.
NOTE: The variables specific to the command file are displayed in all capital letters.
Command file for the label Odette.lab:
LABELNAME = "Odette.Lab" Receiver1 = "General Motors" Receiver2 = "3434 Washington Blvd." Receiver3 = "Chicago" NetWt = "240" NumBox = "5" Description = "ACV N22 C G" LotNum = "AQP" PartNum = "9563244580" GrossWt = "12" LabNum = "72351" ModLevel = "M04" SupplPartNum = "254467NO" SupplierAdd = "Delphi Detroit" DeliveryAdd = "2Z69A54" Supplier = "13646H" DocNum = "123456" Quantity = "5" Date = "127" PRINTER = "Production2" LABELQUANTITY = "1"
Label Design Tools Training Guide
Page 77
TEKLYNX INTERNATIONAL
Generating Command Files continued
Command file for the label Palette.lab: LABELNAME = "Palette.Lab" SSCC = "133333312345678906" Content = "5412345678908" Batch = "4512XA" BestBefore = "01.01.2010" Quantity = "47" PRINTER = "Production1" LABELQUANTITY = "1"
The command file recognizes the label fields and assigns the appropriate value to them. You can therefore repeat the variables of a label several times to print each label with different field content.
Page 78
CODESOFT
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- opensees output
- windows command line administrator s pocket consultant
- running qshell techtarget
- cuda debugging with command line tools
- cygwin command line windows
- lesson5 command file interpreter
- shoveling a command shell using default windows command
- lecture 5 nyu computer science
- windows cmd command syntax ss64
Related searches
- batch file command line arguments
- bat file open command prompt
- open command prompt file explorer
- command prompt in file explorer
- command for file explorer
- file explorer open command prompt
- read file from command line
- open file explorer from command prompt
- read file command line windows
- how to open file in command prompt
- move up a file in command prompt
- move file command dos