Solved

Play a Wav File and Close Application from  a Program

Posted on 2009-07-10
2
387 Views
Last Modified: 2012-05-07
I need to alert users when a specific action happens in our database.  I thought I could execute a batch job that would play a wav file.  My problem is that I can execute the wav file and it will play but I cannot seem to close media player through the program.  The code I tried was
mplayer32 /play /close test.wav.  Does anyone have a good idea?
0
Comment
Question by:RDB1369
2 Comments
 
LVL 26

Accepted Solution

by:
Pber earned 500 total points
Comment Utility
Hi there, I've done this exact thing.  See this script here.
 
http://www.microsoft.com/technet/scriptcenter/resources/qanda/nov04/hey1103.mspx
0
 

Author Closing Comment

by:RDB1369
Comment Utility
This worked perfectly.  Thanks
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

This is a fairly complicated script that will install the required prerequisites to install SCCM 2012 R2 on a server.  It was designed under the functional model in order to compartmentalize each step required, reducing the overall complexity.  The …
Ever notice how you can't use a new drive in Windows without having Windows assigning a Disk Signature?  Ever have a signature collision problem (especially with Virtual Machines?)  This article is intended to help you understand what's going on and…
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now