home *** CD-ROM | disk | FTP | other *** search
/ 1st Canadian Shareware Disc / 1st_Canadian_Shareware_Disc_1991.ISO / graphics / draftc / setup.bat < prev   
DOS Batch File  |  1989-01-21  |  5KB  |  105 lines

  1. echo off
  2. rem  *** DRAFT CHOICE Installation Procedure  ***
  3. if not %1a==a goto num
  4. cls
  5. echo                         ┌───────────────────────────┐
  6. echo                ─────────│ DRAFT CHOICE Installation │─────────
  7. echo                         └───────────────────────────┘
  8. echo                                        *
  9. echo                     ****  ERROR - No Disk Specified  ****
  10. echo                           .........................
  11. echo     The SETUP command must be followed by a drive letter, and if necessary 
  12. echo     by a directory name.  For example, to install DRAFT CHOICE on a formatted 
  13. echo     floppy disk, place the DRAFTC disk in Drive A, the blank disk in drive 
  14. echo     B, and use the command 
  15. echo                                   SETUP b:
  16. echo     To install the program on drive C in a directory named DRAFTC, place 
  17. echo     the DRAFT CHOICE disk in drive A, and use the command 
  18. echo                               SETUP C:\DRAFTC
  19. echo                                              :                 
  20. echo                 No trailing backslash  ......:
  21. echo     --------------------------------------------------------------------- 
  22. echo        Please decide which installation you want to use and try again. 
  23. echo     --------------------------------------------------------------------- 
  24. goto finals
  25. :num
  26. if exist DRAFTC.exe goto insprog1
  27. cls
  28. echo                         ┌───────────────────────────┐
  29. echo                ─────────│ DRAFT CHOICE Installation │─────────
  30. echo                         └───────────────────────────┘
  31. echo                                       *
  32. echo                    **  Error  -  DRAFTC files not Found **          
  33. echo                                       *
  34. echo              The DRAFTC Files are not on the current logged drive.
  35. ECHO       Either place the diskette with the original DRAFTC files in the 
  36. echo       default drive and press  Y  to continue, or press  N  to abort 
  37. echo       the installation process  !!!
  38. echo                                       *
  39. yesno                            Continue 
  40. if not errorlevel=1 goto fin1
  41. :insprog1
  42. if not exist DRAFTC.exe goto num
  43. if not exist setup.bat goto num
  44. copy setup.bat  %1\setup.bat >nul
  45. if not exist %1\setup.bat goto isnotdir
  46. cls
  47. echo                         ┌───────────────────────────┐
  48. echo                ─────────│ DRAFT CHOICE Installation │─────────
  49. echo                         └───────────────────────────┘
  50. echo                                        *                       
  51. echo                      Installing on:    %1\
  52. echo                      --------------------------------------
  53. echo                      Copying DRAFTC.EXE  [Execution Module]     
  54. copy DRAFTC.EXE %1\DRAFTC.EXE >nul
  55. echo                      Copying DRAFTC.PIC  [1st Opening Screen]   
  56. copy DRAFTC.PIC %1\DRAFTC.PIC >nul
  57. echo                      Copying DRAFTC.SCR  [2nd Opening Screen]   
  58. copy DRAFTC.SCR %1\DRAFTC.SCR >nul
  59. echo                      Copying DRAFTC.HLP  [Help File]     
  60. copy draftc.hlp %1\draftc.hlp >nul
  61. echo                      Copying XXXXXX.FNT  [Font Files]   
  62. copy *.FNT %1\*.FNT >nul
  63. echo                                        *
  64. if  %2b==b goto thewks
  65. goto copywks
  66. :thewks
  67. cls
  68. echo                         ┌───────────────────────────┐
  69. echo                ─────────│ DRAFT CHOICE Installation │─────────
  70. echo                         └───────────────────────────┘
  71. echo                                       *
  72. echo       Do you also want to copy the sample drawing files to the 
  73. echo       specified directory ?  
  74. echo                        Press  Y  to copy the files, or 
  75. echo                        Press  N  to exit to DOS.
  76. yesno                             Select   
  77. if not errorlevel=1 goto fin
  78. :copywks
  79. echo                                        *
  80. echo                      Copying the sample drawing files
  81. copy *.DCH %1\*.dch >nul
  82. goto fin
  83. :fin1
  84. echo           ******************************************************* 
  85. echo    *****  Abnormal Termination - Working Copy might be incomplete  ******
  86. echo           *******************************************************
  87. goto finals
  88. :isnotdir
  89. echo                         ┌───────────────────────────┐
  90. echo                ─────────│ DRAFT CHOICE Installation │─────────
  91. echo                         └───────────────────────────┘
  92. echo                                        *                       
  93. echo                          Sub-Directory -- %1
  94. echo     The specified sub-directory DOES NOT exist or not specified correctly.
  95. echo              Please create it, use a different one, or respecify.
  96. echo                     (Remember!   No Trailing Backslash) 
  97. echo                                        *                       
  98. goto finals
  99. :fin
  100. echo           ******************************************************* 
  101. echo     *****      Normal Termination - Working Copy Complete        ******
  102. echo           *******************************************************
  103. :finals
  104.  
  105.