home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: SysTools
/
SysTools.zip
/
stmon013.zip
/
Install.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1998-12-29
|
1KB
|
37 lines
/* ReXX Utility To Install StHWMon */
call RxFuncAdd "SysLoadFuncs", "RexxUtil", "SysLoadFuncs"
call SysLoadFuncs
/* Get current directory */
CDir=Directory()
/* Get location of StHMon.INI */
IniLoc=SysIni('USER','StM Applications','StHWMon.INI')
If IniLoc="ERROR:" Then
Do
IniLoc=CDir'\StHWMon.INI'
Call SysIni 'USER',"StM Applications","StHWMon.INI",IniLoc
End
/* Prompt user and ask for language */
Say "This will install StHWMon on your system"
Say "Please enter language code."
Say "DE for german"
Say "EN for english"
Say "REMOVE for deinstallation"
Say "All other codes will default to english"
parse pull Lang
if Length(Lang)>1 Then
Do
if Translate(Lang)='REMOVE' Then
Do
Lang=''
I=SysIni('USER','StM Applications','StHWMon.INI','DELETE:')
I=SysIni('USER','StM Applications','StHWMonLanguage','DELETE:')
Say "The entry in OS2.INI was removed"
Exit
End
Call SysIni 'USER',"StM Applications","StHWMonLanguage",Lang
Call SysCls
Say "The programm was successfully installed."
End