home *** CD-ROM | disk | FTP | other *** search
- ECHO OFF
- CLS
- IF [%1]==[] GOTO Usage
- IF [%1]==[?] GOTO Usage
- IF EXIST %1 GOTO Copy
- :Usage
- ECHO HPFIX fixes up print control files (PR.DEF) made with Font Selector 2.0
- ECHO to include the new graphic capabilities of PC-Write 4.1.
- ECHO
- ECHO HPFIX old [new]
- ECHO
- ECHO where: old = name and extension of old print control file;
- ECHO new = name and extension of new print control file,
- ECHO can be the same as the old print control file,
- ECHO defaults to HPNEW.DEF if not given.
- ECHO
- ECHO Example: HPFIX PR.DEF NEWPR.DEF
- GOTO Exit
- :Copy
- SET HPNEW=HPNEW.DEF
- IF NOT [%2]==[] SET HPNEW=%2
- IF [%1]==[%HPNEW%] GOTO Fix
- ECHO HPFIX: Copying %1 to %HPNEW% ...
- COPY %1 %HPNEW% >NUL
- :Fix
- ECHO HPFIX: Fixing %HPNEW% ...
- ECHO $UP:LJet.prd >> %HPNEW%
- ECHO $UE=32,13 >> %HPNEW%
- ECHO $WP=27,38,108,1,72 (Paper main) >> %HPNEW%
- ECHO $WP=27,38,108,2,72 (Paper manual) >> %HPNEW%
- ECHO $WP=27,38,108,3,72 (Envelope manual) >> %HPNEW%
- ECHO $WP=27,38,108,4,72 (Paper alternate) >> %HPNEW%
- ECHO $WP=27,38,108,5,72 (Paper optional) >> %HPNEW%
- ECHO $WP=27,38,108,6,72 (Envelope optional) >> %HPNEW%
- ECHO HPFIX: Fixed %HPNEW%.
- SET HPNEW=
- :Exit
- ECHO
- ECHO
-
-