home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 27 Fixes20
/
27-Fixes20.zip
/
pj19409.zip
/
UPDATE.CMD
< prev
Wrap
OS/2 REXX Batch file
|
1995-08-28
|
1KB
|
64 lines
@echo off
rem
rem OS/2 Command file to update the IDE device drivers.
rem
if "%1" == "" goto SYNTAX_ERROR
if not "%2" == "21" goto SYNTAX_CHECK
goto DO_UPDATE
:SYNTAX_CHECK
if not "%2" == "30" goto SYNTAX_ERROR
:DO_UPDATE
echo.
echo ...Initiating IDE device driver update...
if %2 == 21 set work_path=%1:\os2
if %2 == 30 set work_path=%1:\os2\boot
%1:
cd\
cd %work_path%
ren ibm1s506.add ibm1s506.ret
@echo on
copy a:\ibm1s506.add
@echo off
attrib +r ibm1s506.add
if not exist cmd640x.add goto label0
ren cmd640x.add cmd640x.ret
@echo on
copy a:\cmd640x.add
@echo off
attrib +r cmd640x.add
:label0
if not exist cmdatapi.flt goto label1
ren cmdatapi.flt cmdatapi.ret
@echo on
copy a:\cmdatapi.flt
@echo off
attrib +r cmdatapi.flt
:label1
if not exist ibmidecd.flt goto end
ren ibmidecd.flt ibmidecd.ret
@echo on
copy a:\ibmidecd.flt
@echo off
attrib +r ibmidecd.flt
goto end
:END
set work_path=
echo.
echo ...Update complete!
echo ...Shutdown and Reboot System to activate the new drivers.
goto END
:SYNTAX_ERROR
echo Syntax: UPDATE x nn
echo where x is the drive letter where OS/2 is installed and
echo where nn is either 21 (OS/2 2.1) or 30 (OS/2 Warp, any version).
:END