Have you tried adding the command line switches?  ie. cmd.exe /c
%windir%\system32\mplay32.exe  /play  /close  %windir%\Media\chimes.wav 

http://support.microsoft.com/kb/126869
<http://support.microsoft.com/kb/126869>  
 
Stephen 

________________________________

From: Action Request System discussion list(ARSList)
[mailto:[EMAIL PROTECTED] On Behalf Of Menachem, Sharon
Sent: Thursday, April 12, 2007 9:24 AM
To: [EMAIL PROTECTED]
Subject: Playing a sound via Run Process


** 
Hi,
 
ARS 5.1.2 patch 1484
Win 2003
SQL 2000 SP3
 
I am trying to play a sound when a particular window opens up in the
user tool and I am trying to use regular command line syntax to do that.
In fact I went so far as to copy the syntax word for word from the admin
tool help!
 
This is the syntax in the Run Process: C:\Software\I386\cmd.exe
%windir%\system32\mplay32.exe %windir%\Media\chimes.wav

As you can see from the log the string is translated correctly but it
fails to play the sound - the error: Failed! 

<ACTL>               Process: "C:\Software\I386\cmd.exe
C:\WINDOWS\system32\mplay32.exe C:\WINDOWS\Media\chimes.wav"
<ACTL>                  **** Failed
<ACTL>                  Return Code: 0l
 
With that very useful error message I am at a loss to know what the
problem is.
 
Is there a better way to do this?
 
Your help is as always greatly appreciated.
 
Thanks,
Sharon
 
 
 
__20060125_______________________This posting was submitted with HTML in
it___ 

_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where the 
Answers Are"

Reply via email to