home *** CD-ROM | disk | FTP | other *** search
/ CICA 1994 September / CICA_Shareware_for_Windows_Walnut_Creek_September_1994.iso / win3 / drivers / video / g1221w.exe / 221W.EXE / UPWIN.BAT < prev    next >
DOS Batch File  |  1993-06-03  |  1KB  |  47 lines

  1. @echo off
  2. rem  Version 1.3  June 03,1993
  3. echo Windows drivers update.
  4. echo.
  5. if "%1"=="" goto errmes1
  6. if "%2"=="" goto errmes1
  7.  
  8. rem Detect whether it is a valid Windows directory.
  9. if not exist %2\win.com goto errmes2
  10.  
  11. rem Detect whether there is a SYSTEM sub-directory.
  12. rem When Windows is on a network, the local Windows directory will
  13. rem have no SYSTEM sub-directory.
  14. if not exist %2\system\win.cnf goto nosystem
  15.  
  16. set windest=%2\system
  17. goto copying
  18. :nosystem
  19. set windest=%2
  20. :copying
  21.  
  22. if not exist %windest%\vddagx.386 goto errmes3
  23. echo Copying %1\*.386 to %windest% ...
  24. copy %1\*.386 %windest% /v
  25. echo Copying %1\*.drv to %windest% ...
  26. copy %1\*.drv %windest% /v
  27. echo Update completed. Remember to run Windows' SETUP next.
  28. goto exit
  29.  
  30. :errmes2
  31. echo Invalid Windows directory.
  32. echo.
  33.  
  34. :errmes1
  35. echo Usage: upwin [source drive:] [Windows directory]
  36. echo    eg. upwin  A:  C:\WINDOWS
  37. goto exit
  38.  
  39. :errmes3
  40. echo Previous version of Windows drivers not found.
  41. echo You must have the drivers installed previously to use UPWIN.
  42. goto exit
  43.  
  44. :exit
  45. echo.
  46.  
  47.