home *** CD-ROM | disk | FTP | other *** search
- echo off
- cls
- echo This program is used to patch the DOS program APPEND.EXE so it can be
- echo used with Network-OS. It is ONLY for IBM PC-DOS 3.3.
- echo .
- echo Before using, you must have DEBUG in the current directory or in the
- echo path. APPEND.EXE must be in the current dir and not write protected.
- echo A backup copy of APPEND.EXE will be saved in the file APPEND.UNP.
- echo .
- echo Press Control-C, then Y to abort or any other key to continue ...
- pause >nul
- rem -------------------------------------------------------------------
- rem - Patches 3 bytes at offset 8d3 in append.exe -
- rem - Old value = 26 88 27, New = 90 90 90 -
- rem - Only for PC-DOS 3.3, append size = 5825 date = 3-17-87, 12:00p -
- rem -------------------------------------------------------------------
- if not exist append.exe goto noappend
- rem tmp1 is input to debug, tmp2 is output, tmp3.$$$ is append.exe
- copy append.exe tmp3.$$$ >nul
- echo d 8d0 l6 >tmp1.$$$
- echo q >>tmp1.$$$
- if exist tmp2.$$$ del tmp2.$$$
- debug tmp3.$$$ <tmp1.$$$ >tmp2.$$$
- if not exist tmp2.$$$ goto nodebug
- echo .
- echo .
- echo Please confirm that the pattern ":08D0 83 C3 07 26 88 27" is
- echo shown below:
- type tmp2.$$$
- if exist tmp?.$$$ del tmp?.$$$
- echo If the pattern is not shown, press Control-C, then Y to abort.
- echo (If ":08D0 83 C3 07 90 90 90" is shown, APPEND is already patched)
- echo Otherwise, press any other key to continue ...
- pause >nul
- copy append.exe append.unp >nul
- rem tmp1 is input to debug, tmp3 is append.exe
- copy append.exe tmp3.$$$ >nul
- echo e 8d3 90 90 90 >tmp1.$$$
- echo w >>tmp1.$$$
- echo q >>tmp1.$$$
- debug tmp3.$$$ <tmp1.$$$ >nul
- del append.exe
- if exist append.exe goto wprot
- ren tmp3.$$$ append.exe
- if not exist append.exe goto renerr
- echo .
- echo .
- echo .
- echo APPEND.EXE successfully patched. APPEND.UNP is the original.
- goto done
-
- :noappend
- echo .
- echo .
- echo .
- echo ERROR: APPPEND.EXE must be in the current directory.
- goto done
-
- :nodebug
- echo .
- echo .
- echo .
- echo ERROR: DEBUG not found. Copy it to current directory and retry.
- goto done
-
- :wprot
- echo .
- echo .
- echo .
- echo ERROR: APPEND.EXE is write protected. Run ATTRIB -R APPEND.EXE,
- echo then retry.
- goto done
-
- :renerr
- echo .
- echo .
- echo .
- echo ERROR: Cannot rename file.
- goto done
-
- :done
- if exist tmp?.$$$ del tmp?.$$$
-
-