home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / graf / keydraw1.zip / INSTALL.BAT < prev    next >
DOS Batch File  |  1990-03-02  |  2KB  |  89 lines

  1. echo off
  2. if %1:==: goto help
  3. if %1==$$$ goto install
  4. set drv=%1:
  5. ECHO ╓───────────────────────────────────────────────────────────────────────╖
  6. echo ║ PC-KEY-DRAW is about to be installed on your hard disk in %1:\KEYDRAW  ║
  7. ECHO ╙───────────────────────────────────────────────────────────────────────╜
  8. pause
  9. md %1:\keydraw
  10. copy install.bat %1:\keydraw
  11. if not exist %1:\keydraw\install.bat goto help
  12. cd %1:\keydraw
  13. del %1:install.bat
  14. md %1:library
  15. md %1:tutorial
  16. md %1:wrkspace
  17. copy *.* %1:
  18. if not exist register.ed goto skip
  19. type %1:register.ed>%1:register.ed
  20. :skip
  21. %1:%0 $$$
  22. :install
  23. cls
  24. ECHO Copying of program disk is complete!
  25. set ext=_l1
  26. set lib=Library L-1
  27. cd %drv%library
  28. goto sub
  29.  
  30. :_l1
  31. set ext=_t1
  32. set lib=Tutorial T-1
  33. cd %drv%tutorial
  34. goto sub
  35.  
  36. :_t1
  37. if not exist %drv%register.ed goto endm
  38. set ext=_l2
  39. set lib=Library L-2
  40. goto sub
  41.  
  42. :_l2
  43. set ext=_l3
  44. set lib=Library L-3
  45. goto sub
  46.  
  47. :_l3
  48. set ext=_l4
  49. set lib=Library L-4
  50. cd %drv%library
  51. goto sub
  52.  
  53. :_l4
  54. cd a:\
  55. goto :endm
  56.  
  57. :sub
  58. ECHO ════════════════════════════════════════════════
  59. ECHO Insert disk %lib% into drive A:
  60. PAUSE
  61. if not exist readme.%ext% goto sub
  62. cls
  63. echo Please wait while %lib% is copied to the hard disk
  64. copy *.* %drv%
  65. cls
  66. echo Copying of %lib% is complete!
  67. cd %drv%\keydraw
  68. set lib=
  69. goto %ext%
  70.  
  71. :endm
  72. %drv%
  73. set ext=
  74. set drv=
  75. kd_util cd @:\library cw @:\wrkspace
  76. cls
  77. ECHO PC-KEY-DRAW is now installed on your hard disk!
  78. ECHO ═══════════════════════════════════════════════
  79. echo You are about to enter the main MENU
  80. PAUSE
  81. menu install
  82.  
  83. :help
  84. ECHO ╒═════════════════════════════════════════════════════════╕
  85. ECHO │ You must specify a drive letter, such as INSTALL C      │
  86. ECHO │ You must specify a drive letter only without a colon ":"│
  87. ECHO ╘═════════════════════════════════════════════════════════╛
  88. :end
  89.