home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1993 #2 / Image.iso / business / ii62.zip / INSTALL.BAT < prev    next >
DOS Batch File  |  1993-06-18  |  4KB  |  74 lines

  1. echo off
  2. REM
  3. REM
  4. cls
  5. echo ╔═══════════════════════════════════════════════════════════════════════════╗
  6. ECHO ║ ░░░░░░▒▒▒▒▒▒▓▓▓▓▓▓       II INSTALLATION PROGRAM       ▓▓▓▓▓▓▒▒▒▒▒▒░░░░░░ ║
  7. echo ╚═══════════════════════════════════════════════════════════════════════════╝
  8. echo :                                                                           :
  9. echo :                                                                           :
  10. if "x"%1 == "x" goto :toofewparams
  11.  
  12. for %%d in ( c: C: d: D: e: E: f: F: g: G: ) do if "%%d" == "%1" goto :destok
  13. for %%d in ( h: H: i: I: j: J: k: K: l: L: ) do if "%%d" == "%1" goto :destok
  14. for %%d in ( m: M: n: N: o: O: p: P: q: Q: ) do if "%%d" == "%1" goto :destok
  15. for %%d in ( r: R: s: S: t: T: u: U: v: V: ) do if "%%d" == "%1" goto :destok
  16. for %%d in ( w: W: x: X: y: Y: z: Z: ) do if "%%d" == "%1" goto :destok
  17. goto :baddest
  18.  
  19. :destok
  20. echo **********  Checking for Inventory Directory on Hard Drive %1    ***********
  21. if exist %1\ii\*.* goto :prgDirExists
  22. echo :                                                                           :
  23. echo :                                                                           :
  24. echo **********       Creating dir %1\ii\ for II program files        **********
  25. md %1\ii >NUL
  26. echo :                                                                           :
  27. echo :                                                                           :
  28. echo **********       Copying Archive files to II directory           **********
  29. echo :                                                                           :
  30. echo :                                                                           :
  31. :prgDirExists
  32. copy ii62.exe %1\ii >NUL
  33. cls
  34. echo ╔═══════════════════════════════════════════════════════════════════════════╗
  35. ECHO ║ ░░░░░░▒▒▒▒▒▒▓▓▓▓▓▓      II INSTALLATION PROGRAM        ▓▓▓▓▓▓▒▒▒▒▒▒░░░░░░ ║
  36. echo ╚═══════════════════════════════════════════════════════════════════════════╝
  37. echo :                                                                           :
  38. echo :                                                                           :
  39. echo **********       Decompressing II program Files                  **********
  40. echo :                                                                           :
  41. echo :                                                                           :
  42. %1
  43. cd\ii
  44. ii62
  45. del ii62.exe >NUL
  46. cls
  47. echo ╔═══════════════════════════════════════════════════════════════════════════╗
  48. ECHO ║ ░░░░░░▒▒▒▒▒▒▓▓▓▓▓▓       II INSTALLATION PROGRAM       ▓▓▓▓▓▓▒▒▒▒▒▒░░░░░░ ║
  49. echo ╚═══════════════════════════════════════════════════════════════════════════╝
  50. echo :                                                                           :
  51. echo :                                                                           :
  52. echo  **********          Installation was successful                  **********
  53. echo :                                                                           :
  54. echo :                                                                           :
  55. echo  **********   To start the program type 'go' at the DOS prompt    **********
  56. echo :                                                                           :
  57. echo :                                                                           :
  58. echo  **********Press Ctrl-C for the DOS prompt or Any Key to start II **********
  59. pause >NUL
  60. call go.bat
  61. goto :end
  62.  
  63. :toofewparams
  64. echo You must specify a destination drive.
  65. echo EXAMPLE:  INSTALL C:
  66. goto :end
  67.  
  68. :baddest
  69. echo Invalid destination drive. Use C: or D: or E:  (with a colon)
  70. echo EXAMPLE:  INSTALL C:
  71. goto :end
  72.  
  73. :end
  74.