Using Run.bat, config.sys, autoexec.bat files on a mobile printer

Article ID: 67625077

Details


 

Topic or Information

Information on what the Run.bat, Config.sys, and Autoexec.bat files are and what they do
What are Run.bat, Config.sys, and Autoexec.bat files used for?

Applies To

All CPCL enabled Zebra Mobile Printers
Excludes: ZQ110, EM220, EM220II

Details

These files can include CPCL commands that are executed when the printer is turned on. When a mobile CPCL printer boots up, it searches its file directory for files that execute on boot up.  These files include the autoexec.bat file, the config.sys file and the run.bat file.  (A run.bat file is not executed if a two-key test is performed) 

The QLn series printers with current firmware allow for ZPL commands in addition to CPCL commands to be used in config.sys or autoexec.bat files.

Example: Turning the GAP sensor on so the printer detects the media interlabel gap

! UTILITIES
GAP-SENSE
PRINT

Example: Turning the GAP and BAR sensors off for receipt type media

! UTILTIES
JOURNAL
SETFF 50 5
PRINT

The DF (Define Format) command can be used if one wishes to store a file on the printer. The RUN.BAT file will execute on power on to configure the printer.

Example: Turning both the GAP and BAR sensors off for receipt type media

! DF RUN.BAT
! UTILTIES
JOURNAL
SETFF 50 5
PRINT

Example: Turning the GAP sensor on

! DF CONFIG.SYS
! UTILTIES
GAP-SENSE
PRINT

Note:  There is a space character after each "!" character

Additional Information

CPCL Programming Guide  Read More>>