Re: playing a .wav file...



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.


.



Relevant Pages

  • RE: sound is gone
    ... I have managed to play a CD in WMP10 by switching to analog, ... new media player in the new account works fine. ... Do you know what caused the sound to stop in the first place? ... > anything you wanna play with windows media player is associated to it, ...
    (microsoft.public.windowsxp.music)
  • Re: I get the error: C00D11BB
    ... >>>I have Windows Media Player 9 in Windows XP. ... I tried to play the file ... >>> In the open URL dialog, try opening the file using a different ...
    (microsoft.public.windowsmedia.player)
  • Re: Media Player 9 wont play .wav files
    ... If I double click on a .wav file, ... > loads, shows the filename in the playlist, but playback stops with no ... If I click on the play button, ... Same thing happens if I open the file from within Media player. ...
    (microsoft.public.windowsmedia.player)
  • Re: ERROR MESSAGE: C00D1199: Cannot play the file
    ... Cannot play the file error message which said " windows ... > media player cannot play the file the player might not support the file ... > or might not support the codec that was used to compress the file" i have ...
    (microsoft.public.windowsmedia.player)
  • Re: Video in ppt 2003
    ... Media Player option - does this play your video well? ... >>> Windows XP Pro with service pack 1 ...
    (microsoft.public.powerpoint)