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>>

+ Product Codes

  • EZ320 Mobile Printers
  • Mobile Printers
  • P4T Mobile Printers
  • P4T Mobile Printers
  • QL Series Mobile Printers
  • QL320 Mobile Printer
  • QL420 Mobile Printer
  • QLn Series Healthcare Mobile Printers
  • QLn Series Mobile Printers
  • QLn220 Healthcare
  • QLn220 Mobile Printer
  • QLn320 Healthcare
  • QLn320 Mobile Printer
  • QLn420 Mobile Printer
  • RP4T RFID Printers
  • RP4T RFID Printers
  • RW 220 Mobile Printer
  • RW 420 Mobile Printer
  • RW 420 Print Station
  • RW Series Mobile Printers
  • ZQ500 Series Mobile Printers
  • ZQ510 Mobile Printer
  • ZQ520 Mobile Printer
  • ZR300 Series Mobile Printers
  • ZR338 Mobile Printers
  • ZR600 Series Healthcare Mobile Printers
  • ZR600 Series Mobile Printers
  • iMZ Series Mobile Printers
  • iMZ220 Mobile Printer
  • iMZ320 Mobile Printer