home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
xwplascr.zip
/
XWPL0208.ZIP
/
release
/
install
/
soundoff.cmd
< prev
next >
Wrap
OS/2 REXX Batch file
|
2000-01-04
|
1KB
|
35 lines
/* SOUNDOFF.CMD: this script disables all XFolder sounds in
case something goes severely wrong
(W) (C) Ulrich Möller. All rights reserved.
*/
"@echo off"
call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
call SysLoadFuncs
say "This script will disable all XFolder sounds, while leaving all the "
say "other system sounds intact. Use this script in case you keep getting "
say "errors when XFolder tries to play sounds."
call charout ,"Are you sure you wish to disable XFolder sounds? (Y/N) >"
key = ''
do until (pos(key,"YN") > 0)
key = translate(SysGetKey("NOECHO"))
end;
say key;
say "";
if (key = "Y") then do
MMINI = GetBootDrive()||"\MMOS2\MMPM.INI";
rc = SysINI(MMINI, "MMPM2_AlarmSounds", "555", "DELETE:");
rc = SysINI(MMINI, "MMPM2_AlarmSounds", "556", "DELETE:");
rc = SysINI(MMINI, "MMPM2_AlarmSounds", "558", "DELETE:");
rc = SysINI(MMINI, "MMPM2_AlarmSounds", "559", "DELETE:");
rc = SysINI(MMINI, "MMPM2_AlarmSounds", "560", "DELETE:");
end;
exit;
GetBootDrive: procedure
parse upper value VALUE( "PATH",, "OS2ENVIRONMENT" ) with "\OS2\SYSTEM" -2 boot_drive +2
return boot_drive