Re: playing a .wav file...
- From: Michael Bednarek <ROT13-zo@xxxxxxxxxxxxx>
- Date: Wed, 24 Aug 2005 18:41:12 +1000
On Wed, 24 Aug 2005 09:58:32 +0300, Timo Salmi <ts@xxxxxxxx> wrote in
microsoft.public.win2000.cmdprompt.admin:
>Royce wrote:
>> Is there a way to play a .wav file in a batch file, but without
>> windows media player opening up? Just want to play the .wav file
>> with no windows opening up or if possible not even minimized.
>
[snip ^G methods]
>The Sound Recorder can be used to play a Wave Audio Sound file
>(.WAV). For example
> sndrec32.exe /play /close %SYSTEMROOT%\Media\tada.wav
[snip]
The OP asked for a method to play a WAV file which would not open a
player window. I think no on-board program can do that.
There are many command line media players available. My preferred CLI
(4NT) has even an internal command -PLAYSOUND- which can play
synchronously or asynchronously (see
<http://jpsoft.com/help/playsound.htm>).
As for on-board programs: in addition to sndrec32 there's mplayer2 which
takes the same switches, but its path is not well defined. My favourite
is
RUNDLL32 AMOVIE.OCX,RunDll /play /close %SYSTEMROOT%\Media\tada.wav
However, it only takes short filenames, which is a bit of a problem
under CMD.EXE, and these two also show a window.
--
Michael Bednarek http://mbednarek.com/ "POST NO BILLS"
.
- Follow-Ups:
- Re: playing a .wav file...
- From: Todd Vargo
- Re: playing a .wav file...
- From: Mike Jones
- Re: playing a .wav file...
- References:
- playing a .wav file...
- From: Royce
- Re: playing a .wav file...
- From: Timo Salmi
- playing a .wav file...
- Prev by Date: Re: playing a .wav file...
- Next by Date: Re: playing a .wav file...
- Previous by thread: Re: playing a .wav file...
- Next by thread: Re: playing a .wav file...
- Index(es):
Relevant Pages
|