How do I play a .wav file remotely over the network on the remote computer using a simple script?

Posted on 2008-10-29
Last Modified: 2010-04-21
I'm trying to setup up a simple executable on a computer to play a .wav file on our paging system remotely. Remote Desktop is not a option, it needs to be a simple script of batch file that will play this .wav file on the remote computer that is connected to our paging system.  
Question by:jason-crocker
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
LVL 38

Expert Comment

ID: 22833037
You can do this using PsExec.

psexec \\computername sndrec32 /play /close c:\filename.wav

Open in new window


Author Comment

ID: 22833183
Is there anyway to do this using a simple shortcut link on the desktop that will run a script on the remote computer to run the .wav file??
LVL 38

Expert Comment

ID: 22833565
You can create a batch script by entering your PsExec command into a text file with a .cmd extension.  You can then create a desktop shortcut to execute it.
Get MySQL database support online, now!

At Percona’s web store you can order your MySQL database support needs in minutes. No hassles, no fuss, just pick and click. Pay online with a credit card.


Author Comment

ID: 22833853
I tried to run the psexec command like you said, and all it would do is create a process on the remote computer, it wouldn't actually play the .wav file on the remote computer. What I'm trying to achieve is the ability to remotely trigger a .wav file to be played through our overhead paging system from this remote computer, while sitting at the managers computer.

LVL 38

Accepted Solution

Shift-3 earned 500 total points
ID: 22834406
It works correctly for me.  Are you pointing to the local path of the .wav file on the remote machine?

If you test it with a built-in sound by running psexec \\computername sndrec32 /play /close c:\windows\media\chimes.wav does it play?

Author Closing Comment

ID: 31511253
Thank you very much. I really appreciate how through you are and east to work with, and you didn't make me feel like an idiot.

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

User Beware!  This is a rather permanent solution to removing your email from an exchange server.  The only way to truly go back is to have your exchange administrator restore your mailbox from backups.  This is usually the option of last resort.  A…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

626 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