home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 8 Other
/
08-Other.zip
/
ocim_snd.zip
/
SOUNDS.CMD
< prev
Wrap
OS/2 REXX Batch file
|
1996-07-22
|
1KB
|
39 lines
/* exit */
/* Exit if no 2/REXX Support installed */
If RxFuncQuery('SysLoadFuncs') \= 0 Then
If RxFuncAdd('SysLoadFuncs','RexxUtil','SysLoadFuncs') <>0 Then Do
Say 'Unable to init REXX Utility function loader.'
signal ENDE
end
call SysLoadFuncs
IniFilename="OS2-CIM.INI"
arg cmdline /* Copy command line arg to var cmdline */
call patch
signal ENDE
/* --------------------------------------------- */
patch: procedure expose IniFilename LogFile
"@attrib " IniFilename "-rh >NUL"
/* Delete READ-ONLY and HIDDEN Atributes of INI File */
if stream(IniFilename,'c','query exists')="" then do
say
say "ERROR: "IniFilename" does not exist in this directory!"
say "Current directory is:" directory()
"@pause"
signal ENDE
end
say "Updating "IniFilename"..."
"@copy " IniFilename " BACKUP.INI >NUL"
erg=SysIni(IniFileName, "General Preferences", "Sounds", "ON"D2C(0))
erg=SysIni(IniFileName, "Sounds", "Play-Sounds", "ON"D2C(0))
ENDE: