@echo off REM echo "%0" "%1" set port=%1 if "%port%"=="" set port=lpt1 ECHO %%-12345X@PJL INITIALIZE>delme ECHO @PJL DEFAULT MPTRAY=CASSETTE>>delme ECHO @PJL DEFAULT LPAPERSOURCE=MPFEEDER>>delme ECHO @PJL SET TRAY2SIZE=LEGAL>>delme ECHO @PJL DEFAULT TRAY2SIZE=LEGAL>>delme ECHO @PJL LPRINTMENUS>>delme ECHO %%-12345X>>delme copy delme %port% /b REM del delme ECHO Configuration Complete: ECHO Printer on %port% set to print legal stock from the lower tray. pause