home *** CD-ROM | disk | FTP | other *** search
/ Various Unprotection Examples / unprotect.zip / unprotect / ZANY-FIX / ZANY-FIX.BAT < prev    next >
DOS Batch File  |  1989-07-18  |  2KB  |  49 lines

  1. echo off
  2. rem *** Unprotect for Zany Golf
  3. rem *** By Michael B. Williams
  4. rem ***    CIS:  73667,3264
  5. rem ***    uucp: research!golem!mikew
  6. echo This batch file unprotects the version of Zany Golf dated 10-17-88.
  7. echo If your version has a different date, this patch may not work.
  8. if not exist zany.com if not exist tzany.com goto direrror
  9. echo This patch also requires that DEBUG.COM be in the current directory or
  10. echo in a directory specified in your PATH environment variable.
  11. echo Press a key to proceed or CTRL-BREAK to terminate this batch file.
  12. pause > nul
  13. echo *** WORKING ***
  14. :zany
  15. if not exist zany.com goto tzany
  16. if not exist zany.fix goto nozanyfix
  17. rem *** Unprotect ZANY.COM
  18. copy zany.com zany!.com > nul
  19. debug zany!.com < zany.fix > nul
  20. echo The EGA version of Zany Golf has been unprotected as ZANY!.COM.
  21. :tzany
  22. if not exist tzany.com goto ok
  23. if not exist tzany.fix goto notzanyfix
  24. rem *** Unprotect TZANY.COM
  25. copy tzany.com tzany!.com > nul
  26. debug tzany!.com < tzany.fix > nul
  27. echo The Tandy version of Zany Golf has been unprotected as TZANY!.COM.
  28. goto ok
  29. :nozanyfix
  30. echo The file ZANY.FIX cannot be found in the current directory.
  31. goto advice
  32. :notzanyfix
  33. echo The file TZANY.FIX cannot be found in the current directory.
  34. goto advice
  35. :direrror
  36. echo Neither the EGA version of Zany Golf (ZANY.COM) nor the Tandy version
  37. echo of Zany Golf (TZANY.COM) can be found in the current directory.
  38. :advice
  39. echo Please change to the proper directory and type ZANY-FIX again.
  40. goto end
  41. :ok
  42. echo *** NOTE ***
  43. echo Your original program files have been left untouched.  You should use
  44. echo the unprotected versions that have been added to the current directory:
  45. echo     ZANY!      runs the unprotected EGA version
  46. echo     TZANY!     runs the unprotected Tandy version
  47. echo Enjoy your Zany Golf. -- M.B.W. 7/19/89
  48. :end
  49.