home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Various Unprotection Examples
/
unprotect.zip
/
unprotect
/
FIXSHANG
/
FIXSHANG.BAT
next >
Wrap
DOS Batch File
|
1987-11-21
|
1KB
|
54 lines
Echo Off
Cls
If X%1==X goto USAGE
Goto %1
:USAGE
Echo:
Echo This batch file can fix either SHANGPC.EXE or SHANGJR.EXE.
Echo:
Echo Type FIXSHANG SHANGPC to unprotect Shanghai for the IBM PC.
Echo Type FIXSHANG SHANGJR to unprotect Shanghai for the IBM PCjr & Tandy.
Echo:
Echo NOTE: YOU MUST HAVE DEBUG.COM IN YOUR PATH OR CURRENT DIRECTORY FOR
Echo FIXSHANG.BAT TO WORK PROPERLY.
Echo:
Echo ALSO, YOU MUST HAVE THE FILE SHANGPC.EXE or SHANGJR.EXE IN THE
Echo SAME DIRECTORY AS THE BATCH AND SCRIPT FILES.
Echo:
Goto END
:SHANGPC
If not exist SHANGPC.EXE goto ERROR1
Echo:
Echo Unprotecting SHANGPC.EXE. Please wait a moment.
Ren SHANGPC.EXE SHANGPC.FIX
Debug SHANGPC.FIX < SHANGPC.SCR > NUL
Ren SHANGPC.FIX SHANGPC.EXE
Echo:
Echo Shanghai for the IBM PC is now unprotected.
Echo:
Goto END
:ERROR1
Echo:
Echo SHANGPC.EXE NOT FOUND! You must copy it to this drive and directory
Echo before running this batch file to unprotect it.
Echo:
Goto END
:SHANGJR
If not exist SHANGJR.EXE goto ERROR2
Echo:
Echo Unprotecting SHANGJR.EXE. Please wait a moment.
Ren SHANGJR.EXE SHANGJR.FIX
Debug SHANGJR.FIX < SHANGJR.SCR > NUL
Ren SHANGJR.FIX SHANGJR.EXE
Echo:
Echo Shanghai for the IBM PCjr and Tandy 1000 is now unprotected.
Echo:
Goto END
:ERROR2
Echo:
Echo SHANGJR.EXE NOT FOUND! You must copy it to this drive and directory
Echo before running this batch file to unprotect it.
Echo:
Goto END
:END