Re: playing a .wav file...
- From: "Mike Jones" <admin@xxxxxxxxx>
- Date: Wed, 24 Aug 2005 09:26:56 GMT
Michael Bednarek wrote:
> 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.
not as such, but it's less intrusive to prefix the command with Start /min
e.g.
start /min sndrec32 /play /close c:\windows\media\notify.wav
> 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.
.
- References:
- playing a .wav file...
- From: Royce
- Re: playing a .wav file...
- From: Timo Salmi
- Re: playing a .wav file...
- From: Michael Bednarek
- 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
|