Re: playing a .wav file...
- From: "Todd Vargo" <toddvargo@xxxxxxxxxxxxx>
- Date: Wed, 24 Aug 2005 16:23:00 -0400
"Michael Bednarek" <ROT13-zo@xxxxxxxxxxxxx> wrote in message
news:9uaog1la4p3epoqa584cn2r63auf5tl7do@xxxxxxxxxx
> 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.
WSH/VBScript can be used to run it hidden.
Set WshShell = WScript.CreateObject("WScript.Shell")
sound = """C:\path_to\My wave file.wav"""
WshShell.Run "sndrec32 /play /close " & sound, 0, true
--
Todd Vargo (double "L" to reply by email)
.
- 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: telnet recommendation
- Next by Date: Schedule Task xcopy
- Previous by thread: Re: playing a .wav file...
- Next by thread: Re: playing a .wav file...
- Index(es):
Relevant Pages
|