echo off if "%1"=="" goto info if not exist %1 goto info0 echo This is how macro %1 will look: >prn: if "%2"=="" goto no_id download %1 /M%2 :has_id echo &fs%2y3x1S >prn: unload /M%2 goto out :no_id download %1 /M31 :no_id2 echo &fs31y3x1S >prn: unload /M31 goto out :info0 if not exist %1.PCL goto info1 echo This is how macro %1.PCL will look: >prn: if "%2"=="" goto no_id0 download %1.PCL /M%2 goto has_id :no_id0 download %1.PCL /M31 goto no_id2 :info1 echo File %1 not found. Please enter a valid macro file name. echo ÿ :info echo This batch file allows you to test print a LaserJet printer macro. echo At the DOS prompt, type TESTMAC followed by the name of the macro file, echo and optionally followed by a macro font ID (number) that is not already echo being used by another printer macro previously downloaded to the printer echo For example echo ÿ echo TESTMAC MYLOGO.PCL echo or echo TESTMAC MYLOGO.PCL 10 echo ÿ :out