home *** CD-ROM | disk | FTP | other *** search
/ Windows Shareware GOLD / NuclearComputingVol3No1.cdr / icons / f1155 / install.bat < prev    next >
DOS Batch File  |  1991-04-10  |  2KB  |  60 lines

  1. :begin
  2. ECHO OFF
  3. ECHO ===================================
  4. ECHO ICON MANAGER - Installation Utility
  5. ECHO ===================================
  6. ECHO  
  7. IF "%1"=="" GOTO nodrive
  8. SET IMPATH=ICONS
  9. IF "%2"=="" GOTO nopath
  10. SET IMPATH=%2
  11. :nopath
  12. IF NOT EXIST %1\%IMPATH%\NUL GOTO cont1
  13. GOTO cont2
  14. :cont1
  15. MD %1\%IMPATH% >NUL
  16. :cont2
  17. IF NOT EXIST ICONMAN.EXE GOTO wrongdir
  18. ECHO Installing Icon Manager to %1\%IMPATH%
  19. ECHO Copying program file...
  20. COPY ICONMAN.EXE %1\%IMPATH% >NUL
  21. ECHO Copying support files...
  22. COPY ICONMAN.WRI %1\%IMPATH% >NUL
  23. COPY 32X32.BMP %1\%IMPATH% >NUL
  24. ECHO Copying text files...
  25. COPY ORDER.TXT %1\%IMPATH% >NUL
  26. COPY README.1ST %1\%IMPATH% >NUL
  27. IF NOT EXIST *.ICA GOTO cont3
  28. ECHO Copying icon archive files...
  29. COPY *.ICA %1\%IMPATH% >NUL
  30. :cont3
  31. ECHO  
  32. ECHO Installation complete!
  33. ECHO  
  34. ECHO Please review the ASCII text file README.1ST by either printing
  35. ECHO the file or viewing with an ASCII text editor such as Windows
  36. ECHO Notepad.  An operations manual is included in the file ICONMAN.WRI,
  37. ECHO formatted for use with Windows Write.
  38. GOTO end
  39. :wrongdir
  40. ECHO Cannot find file ICONMAN.EXE.  Please check to make sure that the
  41. ECHO current directory is set to the floppy drive containing the
  42. ECHO installation diskette.
  43. GOTO end
  44. :nodrive
  45. ECHO  
  46. ECHO                  Directions for using INSTALL
  47. ECHO                  ----------------------------
  48. ECHO  
  49. ECHO Enter the disk drive to install to on the command line.
  50. ECHO  
  51. ECHO                      Example:  INSTALL C:
  52. ECHO  
  53. ECHO You may additionally specify a sub-directory (e.g., INSTALL D: MYDIR),
  54. ECHO otherwise the installation will be performed using "ICONS" as the
  55. ECHO sub-directory.
  56. :end
  57. ECHO  
  58. ECHO End INSTALL
  59. 
  60.