home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / finance / asa40t.zip / SETUP.BAT < prev    next >
DOS Batch File  |  1990-07-18  |  3KB  |  72 lines

  1. echo off
  2. rem  ***  AS-EASY-AS Installation Procedure  ***
  3. if not %1a==a goto num
  4. cls
  5. echo  * AS-EASY-AS Installation   *
  6. echo  * ERROR - No Disk Specified *
  7. echo  ----------------------------------------------------------------
  8. echo  SETUP command must be followed by a drive letter, and if 
  9. echo  necessary by a directory name.  For example, to install ASEASYAS 
  10. echo  on a formatted floppy disk, place the ASEASY disk in Drive A, the 
  11. echo  blank disk in drive B, and use the command:    SETUP b: 
  12. echo  ----------------------------------------------------------------
  13. echo  To install the program on drive C in a directory named ASEASY, 
  14. echo  place the ASEASYAS disk in drive A, and use the command:  
  15. echo  SETUP C:\ASEASY 
  16. echo  (No trailing backslash)
  17. echo  ----------------------------------------------------------------
  18. echo  Decide which installation you want to use and try again.
  19. echo  ----------------------------------------------------------------
  20. goto finals
  21. :num
  22. if exist aseasy.EXE goto insprog1
  23. if exist aseasy.com goto oldone
  24. cls
  25. echo  **  AS-EASY-AS Installation          **
  26. echo  **  Error  -  ASEASY files not Found **
  27. echo  ----------------------------------------------------------------
  28. echo  The ASEASY Files are not on the current logged drive. Either
  29. ECHO  place the diskette with the  original  ASEASY  files  in the
  30. echo  default  drive  and  press  Y  to continue, or  press  N  to
  31. echo  abort the installation process  !!!
  32. echo  ----------------------------------------------------------------
  33. yesno                Continue
  34. if not errorlevel=1 goto fin1
  35. :insprog1
  36. if not exist aseasy.EXE goto num
  37. if not exist setup.bat goto num
  38. copy setup.bat  %1\setup.bat >nul
  39. if not exist %1\setup.bat goto isnotdir
  40. cls
  41. echo  AS-EASY-AS Installation
  42. echo            *
  43. echo  Copying the ASEASY Files
  44. copy yesno.com %1\yesno.com >nul
  45. copy aseasy.* %1\*.* >nul
  46. copy htree.exe %1\htree.exe >nul
  47. copy *.doc %1\*.doc >nul
  48. echo ***  Completed  ***
  49. echo  ----------------------------------------------------------------
  50. echo  Please refer to the file READ.ME for instructions on how 
  51. echo  to extract the Add-ins and worksheet sample files.
  52. echo  ----------------------------------------------------------------
  53. goto finals                    
  54. :fin1
  55. echo  ** Abnormal Termination, Retry **
  56. goto finals
  57. :isnotdir
  58. echo  **  AS-EASY-AS Installation **
  59. echo  ----------------------------------------------------------------
  60. echo  The specified sub-directory  %1  DOES NOT exist.
  61. echo  Please create it or use a different sub-directory.
  62. echo  (Remember!   No Trailing Backslash)
  63. echo  ----------------------------------------------------------------
  64. goto finals
  65. :oldone
  66. echo  ** Incorrect SETUP version, only for AS-EASY-AS Ver. 4.0 **
  67. goto finals
  68. :fin
  69. echo  ** Normal Termination **
  70. :finals
  71.  
  72.