home *** CD-ROM | disk | FTP | other *** search
/ Jason Aller Floppy Collection / 322.img / TNTINC1.ZIP / CHARDISK.BAT next >
DOS Batch File  |  1990-10-05  |  2KB  |  76 lines

  1. @echo off
  2. echo off
  3. cls
  4.  
  5. if %1x==x goto spellItOut
  6. if %2x==x goto spellItOut
  7.  
  8. if %1==a: goto try2nd
  9. if %1==A: goto try2nd
  10. if %1==b: goto try2nd
  11. if %1==B: goto try2nd
  12. goto unusual
  13.  
  14. :try2nd
  15. if %2==a: goto doinstall
  16. if %2==A: goto doinstall
  17. if %2==b: goto doinstall
  18. if %2==B: goto doinstall
  19.  
  20. :unusual
  21. echo CHARDISK %1 %2 is invalid.  Please use the drive's letter followed by a colon:
  22. goto sample
  23.  
  24. :spellItOut
  25. echo Please specify the original drive and the character drive,  for example:
  26. :sample
  27. echo 
  28. echo         chardisk a: b:
  29. goto end
  30.  
  31. :doinstall
  32.  
  33. if %1 == %2 goto unusual
  34.  
  35. echo         ╔═════════════════════════════════════════════════════════════╗
  36. echo         ║                                                             ║
  37. echo         ║                         Tunnels & Trolls                    ║
  38. echo         ║                                                             ║
  39. echo         ║                  Character Disk Creation Utility            ║
  40. echo         ║                                                             ║
  41. echo         ║                                                             ║
  42. echo         ║ This Utility requires that the TNT original Disk 1 be in    ║
  43. echo         ║ Drive %1 and a blank FORMATTED disk be in Drive %2          ║
  44. echo         ║                                                             ║
  45. echo         ║ If you don't have TWO (2) floppy disk drives, please refer  ║
  46. echo         ║ to the Insert Sheet included with Tunnels & Trolls          ║
  47. echo         ║                                                             ║
  48. echo         ║ If all is acceptable, press any key...                      ║
  49. echo         ║                                                             ║
  50. echo         ║ If not, press Ctrl-C to exit.                               ║
  51. echo         ║                                                             ║
  52. echo         ╚═════════════════════════════════════════════════════════════╝
  53. echo 
  54. pause
  55. echo 
  56.  
  57. copy %1\ID? %2\ID7 >nul
  58. copy %1\GCON.DAT %2\ >nul
  59.  
  60. if not exist %2\id7 goto error
  61. if not exist %2\gcon.dat goto error
  62. goto success
  63.  
  64. :error
  65. echo ERROR:  Creation of the character disk was unsuccessful.  This might be
  66. echo         because your disk is full.  Your characters need at least 1k
  67. echo         free disk space.
  68. goto end
  69.  
  70. :success
  71. echo 
  72. echo SUCCESS:  Creation of the character disk was successful.
  73. echo 
  74. :end
  75. echo 
  76.