home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 11 Util
/
11-Util.zip
/
numcomma.zip
/
install.cmd
< prev
next >
Wrap
OS/2 REXX Batch file
|
1997-11-06
|
715b
|
29 lines
/* Install 'dll' entry into USER INI file */
call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
call SysLoadFuncs
dll = 'NUMCOMMA'
/* get INI entry, and strip out null terminator */
string = SysIni("USER","SYS_DLLS","LoadOneTime")
string = left(string,length(string)-1)
flag = 0
do wrd = 1 to WORDS(string)
if word(string,wrd) = dll then
flag = 1
end
if flag = 0 then
do
if SysIni("USER","SYS_DLLS","LoadOneTime",string dll||d2c(0)) = '' then
do
say dll 'successfully installed.'
say 'Make sure you have copied' dll 'in \OS2\DLL.'
end
else
say 'An error occured while installing' dll 'in OS2.INI.'
end
else
say dll 'already installed.'