home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / finance / pivot20.zip / SETUP.BAT < prev    next >
DOS Batch File  |  1990-07-05  |  5KB  |  105 lines

  1. echo off
  2. rem  ***    PIVOT!    Installation Procedure  ***
  3. if not %1a==a goto num
  4. cls
  5. echo                         ┌───────────────────────────┐
  6. echo                ─────────│    PIVOT!    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    PIVOT!    on a formatted
  13. echo     floppy disk, place the PIVOT! 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 PIVOT!, place
  17. echo     the    PIVOT!    disk in drive A, and use the command
  18. echo                               SETUP C:\PIVOT!
  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 PIVOT.exe goto insprog1
  27. :numagn
  28. cls
  29. echo                         ┌───────────────────────────┐
  30. echo                ─────────│    PIVOT!    Installation │─────────
  31. echo                         └───────────────────────────┘
  32. echo                                       *
  33. echo                    **  Error  -  PIVOT! files not Found **
  34. echo                                       *
  35. echo              The PIVOT! Files are not on the current logged drive.
  36. ECHO       Either place the diskette with the original PIVOT! files in the
  37. echo       default drive and press  Y  to continue, or press  N  to abort
  38. echo       the installation process  !!!
  39. echo                                       *
  40. yesno                            Continue
  41. if not errorlevel=1 goto fin1
  42. :insprog1
  43. if not exist PIVOT.exe goto num
  44. if not exist setup.bat goto numagn
  45. copy setup.bat  %1\setup.bat >nul
  46. if not exist %1\setup.bat goto isnotdir
  47. cls
  48. echo                         ┌───────────────────────────┐
  49. echo                ─────────│    PIVOT!    Installation │─────────
  50. echo                         └───────────────────────────┘
  51. echo                                        *
  52. echo                      Installing on:    %1\
  53. echo                      --------------------------------------
  54. echo                      Copying PIVOT.EXE   [Execution Module]
  55. copy PIVOT.EXE %1\PIVOT.EXE >nul
  56. echo                      Copying GCHAR.EXE   [The Font Editor Module]
  57. copy GCHAR.exe %1\GCHAR.EXE >nul
  58. echo                      Copying the Font Files
  59. copy *.TRP %1\*.TRP >nul
  60. copy *.TRL %1\*.TRL >nul
  61. echo                      Copying the Configuration File
  62. copy PIVOT.CFG %1\PIVOT.CFG >nul
  63. echo                                        *
  64. if  %2b==b goto thewks
  65. goto copywks
  66. :thewks
  67. cls
  68. echo                         ┌───────────────────────────┐
  69. echo                ─────────│    PIVOT!    Installation │─────────
  70. echo                         └───────────────────────────┘
  71. echo                                       *
  72. echo       Do you also want to copy the sample Worksheet file(s) 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 file(s)
  81. copy *.WKS %1\*.WKS >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                ─────────│    PIVOT!    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.