home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
wpdsc093.zip
/
register.cmd
< prev
next >
Wrap
OS/2 REXX Batch file
|
1995-11-06
|
1KB
|
44 lines
/* rexx */
call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
call SysLoadFuncs
call RxFuncAdd "DSCRxLoadFuncs", "rxdscr", "DSCRxLoadFuncs"
call DSCRxLoadFuncs
cls.2="DSCRFileList"
cls.1="DSCRDataFile"
dll.2="dscrlst"
dll.1="dscrdf"
cls.0=2
dll.0=2
do i=1 to cls.0
retc=SysRegisterObjectClass(cls.i,dll.i)
if retc=1 then
say 'Install successfully completed for the class 'cls.i
else do
say 'Error registering class 'cls.i' ('dll.i')'
say 'Please contact VOS to report this error'
signal ExitInst
end
end
rc= DSCRxReplaceClass('WPDataFile','DSCRDataFile',1)
if rc=0 then do
say 'Error occured while replacing WPDataFile class'
signal ExitInst
end
say 'Class WPDataFile successfuly replaced with DSCRDataFile'
rc=DSCRxReplaceClass('WPFolder','DSCRFileList',1)
if rc=0 then do
say 'Error occured while replacing WPFolder class'
signal ExitInst
end
say 'Class WPFolder successfuly replaced with DSCRFileList'