home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
ddkx86v1.zip
/
DDKINST.CMD
next >
Wrap
OS/2 REXX Batch file
|
1995-04-10
|
2KB
|
54 lines
/* This command file call the actual install in setup directory */
call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
call SysLoadFuncs
call SysCls
/*
Find out the bootdrive from the path and then delete the EPF* files
from OS2/SYSTEM directory
*/
result = SysDestroyObject('<DDKI_B_FOLDER>')
path = value('PATH',,'OS2ENVIRONMENT')
if pos(':\OS2\SYSTEM', path) > 1 then
Parse Upper var path . ":\OS2\SYSTEM" -1 bootdrive +1 .
else bootdrive = 'C'
bootpath= bootdrive':\os2\system'
call SysIni bootpath'\epfis.ini','EPFINST_IBM Device Driver Source Kit for OS/2_71G3703-01_', 'DELETE:'
call SysIni bootpath'\epfis.ini','EPFINST_IBM Device Driver Source Kit for OS/2_71G3703_', 'DELETE:'
call SysIni bootpath'\epfis.ini','EPFINST_IBM Device Driver Source Kit for OS/2_71G3703_5892', 'DELETE:'
call SysIni bootpath'\epfis.ini','EPFINST_OS/2 Device Driver Development Kit_0_0', 'DELETE:'
USER1=bootpath'\epfis.ini'
Version=SysIni(USER1,"EPFINST_IBM Developer Connection Device Driver Kit for OS/2_83G9641_","Version")
oldver = LEFT(Version,4)
/* This entry has to be changed everytime a new version is shipped */
curver="0200"
retcode=compare(oldver,curver)
if retcode<>'0'
then
DO
call SysIni bootpath'\epfis.ini','EPFINST_IBM Developer Connection Device Driver Kit for OS/2_83G9641_','DELETE:'
Call MAIN_INST
END
ELSE
Call MAIN_INST
EXIT
MAIN_INST:
parse source . . cmd_source .
current_directory = directory()
call directory FILESPEC( 'Drive', cmd_source ) || FILESPEC( 'Path', cmd_source ) || 'DDKx86\setup'
'@INSTALL'
call directory current_directory
return