Zebra ZPL files created with DOS application stop working in
Windows2000
Home >
Barcode Basics >
Application Notes >
AppNote013
Some DOS applications build text files formatted in Zebra's printer language (ZPL) and
then copy the file to the printer port. This application may have worked fine with MS-DOS,
Win 3.x, Win/95/98, but when moved to a Windows/2000 platform, it stops working. Check to
see if the DOS application is creating the ZPL output file by echoing data from command
lines in a batch file to the output file. Example:
echo ^XA > outfile.txt echo ^FO10,10^A0N,40,40^FDHELLO WORLD^FS >> outfile.txt echo ^PQ1 >> outfile.txt echo ^XZ >> outfile.txt copy outfile.txt LPT1:
The problem is that the Windows/2000 command interpreter does not echo a single caret ^
(it is used internally by the command interpreter). To echo a caret, use two of them. In
the above example all of the carets will be removed by Windows/2000. Here is a revised
example that should work:
echo ^^XA > outfile.txt echo ^^FO10,10^^A0N,40,40^^FDHELLO WORLD^^FS >> outfile.txt echo ^^PQ1 >> outfile.txt echo ^^XZ >> outfile.txt copy outfile.txt LPT1:
|
|