home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: WPS_PM
/
WPS_PM.zip
/
x082082.zip
/
install
/
sound048.cmd
< prev
Wrap
OS/2 REXX Batch file
|
1998-10-16
|
1KB
|
35 lines
/* enable new XFolder system sounds
Polish version (048)
(W) (C) Ulrich Möller. All rights reserved.
*/
/* these are the titles of the sounds to be created */
ShutdownSound = "XFolder: Zamkni⌐cie systemu"
RestartWPSSound = "XFolder: Restart WPS"
ContextOpenSound = "XFolder: Otwarcie menu"
ContextSelectSound = "XFolder: Wybór menu"
CnrSelectSound = "XFolder: Podwójne klikni⌐cie folderu"
/* do not change the following */
call RxFuncAdd 'SysLoadFuncs', 'REXXUTIL', 'SysLoadFuncs'
call SysLoadFuncs
parse source dir;
parse var dir x1 x2 dir;
dir = filespec("D", dir)||filespec("P", dir);
dir = left(dir, lastpos("\INSTALL", translate(dir)))||"wav\";
MMINI = GetBootDrive()||"\MMOS2\MMPM.INI";
rc = SysINI(MMINI, "MMPM2_AlarmSounds", "555", dir||"autoshut.wav#"||ShutdownSound||"#70");
rc = SysINI(MMINI, "MMPM2_AlarmSounds", "556", dir||"autoshut.wav#"||RestartWPSSound||"#70");
rc = SysINI(MMINI, "MMPM2_AlarmSounds", "558", dir||"ckckk.wav#"||ContextOpenSound||"#100");
rc = SysINI(MMINI, "MMPM2_AlarmSounds", "559", dir||"dudubeep.wav#"||ContextSelectSound||"#100");
rc = SysINI(MMINI, "MMPM2_AlarmSounds", "560", dir||"dudubeep.wav#"||CnrSelectSound||"#100");
exit;
GetBootDrive: procedure
parse upper value VALUE( "PATH",, "OS2ENVIRONMENT" ) with "\OS2\SYSTEM" -2 boot_drive +2
return boot_drive