home *** CD-ROM | disk | FTP | other *** search
/ Tiny System Restore Pack / RESTORE.iso / DRIVERS / SOUND / OPL3-SA / DOSWIN31 / WINSTALL.BAT < prev    next >
Encoding:
DOS Batch File  |  1996-12-09  |  1.0 KB  |  54 lines

  1. @echo off
  2. cls
  3. echo ================================================================
  4. echo This program makes the temporary directory named "OPL3TEMP".
  5. echo ================================================================
  6.  
  7. IF EXIST C:\OPL3TEMP\*.* GOTO OVERWRITE?
  8. IF NOT EXIST C:\OPL3TEMP\*.* GOTO PROCESS1
  9.  
  10. :OVERWRITE?
  11. CHOICE /C:YN Directory already exists. Overwrite?
  12. IF ERRORLEVEL 2 GOTO END
  13. IF ERRORLEVEL 1 GOTO PROCESS1
  14.  
  15. :PROCESS1
  16. CHOICE /C:YN Start making the directory and copying the files?
  17. IF ERRORLEVEL 2 GOTO END
  18. IF ERRORLEVEL 1 GOTO PROCESS2
  19.  
  20. :PROCESS2
  21. C:
  22. MD C:\opl3temp
  23. echo Copying files to C:\OPL3TEMP... 
  24. @echo off
  25. COPY A:\winst95.exe C:\opl3temp
  26. cls
  27. C:
  28. CD C:\opl3temp
  29.  
  30. winst95
  31.  
  32. INSTALL  -s %1 %2
  33.  
  34. IF ERRORLEVEL 2 GOTO DEL
  35. IF ERRORLEVEL 1 GOTO L_WINST
  36. GOTO DEL
  37.  
  38. :L_WINST
  39. WINSTALL
  40. GOTO DEL
  41.  
  42. :DEL
  43.  
  44. CD C:\
  45. echo ==========================================
  46. echo The directory "c:\OPL3TEMP" is temporary.
  47. echo ==========================================
  48. DELTREE c:\OPL3TEMP
  49. cls
  50. :END
  51. @echo on
  52. exit
  53.  
  54.