home *** CD-ROM | disk | FTP | other *** search
/ Share Gallery 1 / share_gal_1.zip / share_gal_1 / INSTALL.BAT < prev    next >
DOS Batch File  |  1994-04-27  |  1KB  |  42 lines

  1. @echo off
  2. %2
  3. cd \
  4. md \%3
  5. cd \%3
  6. echo ------------------------------------------------------------------------
  7. echo.
  8. echo usage:    install d1 d2 p
  9. echo .
  10. echo             where  d1 = source drive (d: e: etc.)
  11. echo                    d2 = target drive (c: d: etc.)   default: current dir
  12. echo                     p = pathname on target drive    default: root
  13. echo .
  14. echo .
  15. echo Example:  install d: c: sample
  16. echo                    copy the interface files from the CD-ROM drive d:
  17. echo                    into the directory \sample on hard disk drive c:
  18. echo .
  19. echo ------------------------------------------------------------------------
  20.  
  21. choice /c:wdq (Windows, Dos, Quit)
  22. if ERRORLEVEL 3 goto end
  23. if ERRORLEVEL 2 goto instdos
  24. if ERRORLEVEL 1 goto instwin
  25.  
  26. :instwin
  27. echo ----------- Install Windows interface ------------
  28. copy %1\dos\win_if\*.* %2\%3 > nul
  29. win %2\%3\msarn110.exe %2\%3\cdconx.mdb
  30. goto end
  31.  
  32. :instdos
  33. echo ----------- Install DOS interface ------------
  34. copy %1\dos\*.* %2\%3 > nul
  35. %2\%3\cdcon
  36. goto end
  37.  
  38. :end
  39.  
  40.  
  41.  
  42.