home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 27 Fixes20 / 27-Fixes20.zip / pj19409.zip / UPDATE.CMD < prev   
OS/2 REXX Batch file  |  1995-08-28  |  1KB  |  64 lines

  1. @echo off
  2. rem
  3. rem OS/2 Command file to update the IDE device drivers.
  4. rem
  5. if "%1" == "" goto SYNTAX_ERROR
  6. if not "%2" == "21" goto SYNTAX_CHECK
  7. goto DO_UPDATE
  8. :SYNTAX_CHECK
  9. if not "%2" == "30" goto SYNTAX_ERROR
  10.  
  11. :DO_UPDATE
  12. echo.
  13. echo ...Initiating IDE device driver update...
  14. if %2 == 21 set work_path=%1:\os2
  15. if %2 == 30 set work_path=%1:\os2\boot
  16.  
  17. %1:
  18. cd\
  19. cd %work_path%
  20.  
  21. ren ibm1s506.add ibm1s506.ret
  22. @echo on
  23. copy a:\ibm1s506.add
  24. @echo off
  25. attrib +r ibm1s506.add
  26.  
  27. if not exist cmd640x.add goto label0
  28.   ren cmd640x.add cmd640x.ret
  29.   @echo on
  30.   copy a:\cmd640x.add
  31.   @echo off
  32.   attrib +r cmd640x.add
  33.  
  34. :label0
  35. if not exist cmdatapi.flt goto label1
  36.   ren cmdatapi.flt cmdatapi.ret
  37.   @echo on
  38.   copy a:\cmdatapi.flt
  39.   @echo off
  40.   attrib +r cmdatapi.flt
  41.  
  42. :label1
  43. if not exist ibmidecd.flt goto end
  44.   ren ibmidecd.flt ibmidecd.ret
  45.   @echo on
  46.   copy a:\ibmidecd.flt
  47.   @echo off
  48.   attrib +r ibmidecd.flt
  49.  
  50. goto end
  51. :END
  52. set work_path=
  53. echo.
  54. echo ...Update complete!
  55. echo ...Shutdown and Reboot System to activate the new drivers.
  56. goto END
  57.  
  58. :SYNTAX_ERROR
  59. echo Syntax: UPDATE x nn
  60. echo         where x is the drive letter where OS/2 is installed and
  61. echo         where nn is either 21 (OS/2 2.1) or 30 (OS/2 Warp, any version).
  62.  
  63. :END
  64.