home *** CD-ROM | disk | FTP | other *** search
/ Share Gallery 1 / share_gal_1.zip / share_gal_1 / UT / UT140A.ZIP / INSTALL.BAT < prev    next >
DOS Batch File  |  1991-01-08  |  1KB  |  60 lines

  1. ECHO OFF
  2. CLS
  3. IF NOT X%4X == XX GOTO OK
  4. IF NOT X%2X == XX ECHO YOU ARE MISSING A PARAMETER.  HERE'S AN EXPLANATION:
  5. ECHO 
  6. This utility installs ZIP files from the A: or B: diskette drive.
  7. ECHO 
  8. Format:   from-drive:INSTALL zip-root-name from-drive to-disk to-directory
  9. ECHO 
  10. Example:  A:INSTALL A MYPROG C \TEST
  11. ECHO 
  12. In the above example, the file MYPROG.ZIP would be installed on the C:
  13. ECHO hard drive, in the TEST directory.
  14. ECHO 
  15. For a list of ZIP files on your A: drive, enter the following command
  16. ECHO at the DOS prompt:  DIR A:*.ZIP
  17.  
  18. GOTO QUIT
  19. :OK
  20. ECHO INSTALLING  %1:%2.ZIP  TO  %3:%4
  21. ECHO 
  22. If this is not correct, press CTL-C
  23.  
  24. PAUSE
  25. CLS
  26. IF EXIST %3:\*.* GOTO OKDDR
  27. ECHO 
  28. Can't log to drive %3:
  29. GOTO X
  30. :OKDDR
  31. %3:
  32. CD \
  33. IF EXIST %1:%2.ZIP GOTO OKZIP
  34. ECHO 
  35. Can't find %1:%2.ZIP
  36. :X
  37. ECHO 
  38. Are you sure it exists?
  39.  
  40. GOTO QUIT
  41. :OKZIP
  42. MD %4
  43. CLS
  44. CD %4
  45. %1:PKUNZIP %1:%2
  46. IF NOT EXIST HELPME.* GOTO DOGO
  47. CLS
  48. ECHO 
  49. We will now run a program named HELPME, which will
  50. ECHO explain what this product is all about.  HELPME can
  51. ECHO also display or print the user manual, or help you
  52. ECHO fill out a customer reply form.
  53. PAUSE
  54. HELPME
  55. GOTO QUIT
  56. :DOGO
  57. COPY A:GO.EXE
  58. GO
  59. :QUIT
  60.