PC Review


Reply
Thread Tools Rate Thread

Re: How can I play a Wav file from batch/cmd script?

 
 
propman
Guest
Posts: n/a
 
      11th Sep 2008
hbfavor <(E-Mail Removed)> wrote in
news:(E-Mail Removed):

>
> Thanks for the reply, but that syntax doesn't work for me with any

media
> player so far.
>
> I really need this functionality to run from a batch/cmd file for
> audible cues for certain events. I don't want to see the player
> interface, and I want it to exit after playing the wave file. I've

been
> trying to get this kind of command to work:
> start /min "player.exe" /play /close "wavefile.wav"
>
> With some media players I can get them to start minimized and play the
> file, but then they try to parse the /play /close switches as media
> files and stop with error messages. They also move the active window

to
> the media player. With WMP, it starts but doesn't play the file, much
> less exit gracefully.
>
> I know there has to be a simple way to get this done. I just can't
> figure out how. Any advice would be much appreciated.
>
>


Media Player Classic download:

http://sourceforge.net/project/showf...roup_id=205650

Install in any directory of your choosing.

Run program and then click on the Help button for Commandline
Switches....or open Command Prompt session in the directory where you
installed mplayerc.exe; type "mplayerc /help".




 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LUA Script in a Batch File josh123 Windows XP 1 21st Apr 2010 06:53 PM
A script/batch to kill a batch file from scheduled tasks? Bogdan Windows XP Configuration 1 31st Jul 2009 07:05 AM
How to play sounds from a batch file Bob Windows Vista General Discussion 9 2nd Jan 2008 02:37 AM
Can I do this with a script or batch file? Grey Windows XP General 3 27th Nov 2006 11:25 PM
Need help with my Batch file script ... =?Utf-8?B?RGFu?= Windows XP Help 0 23rd Nov 2006 05:21 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:21 AM.