home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 11 Util
/
11-Util.zip
/
wpsdscr.zip
/
install.cmd
< prev
next >
Wrap
OS/2 REXX Batch file
|
1995-09-16
|
754b
|
33 lines
/* rexx */
parse arg args
dllpath=word(args,1)
if dllpath='' then do
say 'Usage: install.cmd <dll-path>'
say ' where <dll-path> is the directory contained '
say ' in LIBPATH statement in your CONFIG.SYS'
exit(1)
end
call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
call SysLoadFuncs
'copy RepClass.exe '||dllpath
cls.1="DSCRFileList"
cls.2="DSCRDataFile"
dll.1="dscrlst"
dll.2="dscrdf"
do i=1 to 2
'copy '||dll.i||'.dll '||dllpath
rc=SysRegisterObjectClass(cls.i,dll.i)
if rc=1 then
say 'Install successfully completed for the class 'cls.i
else do
say 'Error registering class 'cls.i
exit(1)
end
end
'repClass WPFolder DSCRFileList'
'repClass WPDataFile DSCRDataFile'