home *** CD-ROM | disk | FTP | other *** search
/ Various Unprotection Examples / unprotect.zip / unprotect / FIXSHANG / FIXSHANG.BAT next >
DOS Batch File  |  1987-11-21  |  1KB  |  54 lines

  1. Echo Off
  2. Cls
  3. If X%1==X goto USAGE
  4. Goto %1
  5. :USAGE
  6. Echo:
  7. Echo This batch file can fix either SHANGPC.EXE or SHANGJR.EXE.
  8. Echo:
  9. Echo Type FIXSHANG SHANGPC to unprotect Shanghai for the IBM PC.
  10. Echo Type FIXSHANG SHANGJR to unprotect Shanghai for the IBM PCjr & Tandy.
  11. Echo:
  12. Echo NOTE: YOU MUST HAVE DEBUG.COM IN YOUR PATH OR CURRENT DIRECTORY FOR
  13. Echo       FIXSHANG.BAT TO WORK PROPERLY.
  14. Echo:
  15. Echo       ALSO, YOU MUST HAVE THE FILE SHANGPC.EXE or SHANGJR.EXE IN THE
  16. Echo       SAME DIRECTORY AS THE BATCH AND SCRIPT FILES.
  17. Echo:
  18. Goto END
  19. :SHANGPC
  20. If not exist SHANGPC.EXE goto ERROR1
  21. Echo:
  22. Echo Unprotecting SHANGPC.EXE.  Please wait a moment.
  23. Ren SHANGPC.EXE SHANGPC.FIX
  24. Debug SHANGPC.FIX < SHANGPC.SCR > NUL
  25. Ren SHANGPC.FIX SHANGPC.EXE
  26. Echo:
  27. Echo  Shanghai for the IBM PC is now unprotected.
  28. Echo:
  29. Goto END
  30. :ERROR1
  31. Echo:
  32. Echo SHANGPC.EXE NOT FOUND!  You must copy it to this drive and directory
  33. Echo before running this batch file to unprotect it.
  34. Echo:
  35. Goto END
  36. :SHANGJR
  37. If not exist SHANGJR.EXE goto ERROR2
  38. Echo:
  39. Echo Unprotecting SHANGJR.EXE.  Please wait a moment.
  40. Ren SHANGJR.EXE SHANGJR.FIX
  41. Debug SHANGJR.FIX < SHANGJR.SCR > NUL
  42. Ren SHANGJR.FIX SHANGJR.EXE
  43. Echo:
  44. Echo  Shanghai for the IBM PCjr and Tandy 1000 is now unprotected.
  45. Echo:
  46. Goto END
  47. :ERROR2
  48. Echo:
  49. Echo SHANGJR.EXE NOT FOUND!  You must copy it to this drive and directory
  50. Echo before running this batch file to unprotect it.
  51. Echo:
  52. Goto END
  53. :END
  54.