Re: playing a .wav file...



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.

30306 Jul 12 21:57 ftp://garbo.uwasa.fi/pc/link/tscmd.zip scmd.zip Useful NT/2000/XP script tricks and tips, T.Salmi

92) How do I play a sound from the command line?

The simplest way to emit a brief beep is
 @echo <Ctrl-G>
How to enter the ASCII 7 character depends on your editor program.

If you can get hold of QBASIC it has a PLAY statement. For example
  @echo off & setlocal enableextensions
  set bas_=%temp%\tmp$$$.bas
  > %bas_% echo PLAY "l8 o3 cdefgab o4 cd"
  >>%bas_% echo SYSTEM
  qbasic /run %bas_%
  for %%f in (%bas_%) do if exist %%f del %%f
  endlocal & goto :EOF

The Sound Recorder can be used to play a Wave Audio Sound file
(.WAV). For example
 sndrec32.exe /play /close %SYSTEMROOT%\Media\tada.wav

References/Comments:
http://support.microsoft.com/kb/q168789/
http://www.google.com/groups?selm=uJqTHMN9EHA.1400@xxxxxxxxxxxxxxxxxxxx
http://www.google.com/groups?selm=426a617e.3383905@xxxxxxxxxxxxxxxxxx


All the best, Timo

--
Prof. Timo Salmi ftp & http://garbo.uwasa.fi/ archives 193.166.120.5
Department of Accounting and Business Finance  ; University of Vaasa
mailto:ts@xxxxxxxx <http://www.uwasa.fi/~ts/>  ; FIN-65101,  Finland
Timo's  FAQ  materials  at   http://www.uwasa.fi/~ts/http/tsfaq.html
.



Relevant Pages

  • Re: DSP plug-in converting 5.1 to 2
    ... "Windows Media Player encountered unknown error" ... >> I play 5.1 channel wav file it wouldn't make a noise. ...
    (microsoft.public.windowsmedia.player)
  • Re: Frustrated
    ... If the file you are talking about happens to be an mp3 or wav file ... "Windows Media Player cannot play the file. ... > This only happens with some downloaded songs and never used to happen with ...
    (microsoft.public.windowsmedia.player)
  • Re: playing a .wav file...
    ... >>> windows media player opening up? ... Just want to play the .wav file ... >>> with no windows opening up or if possible not even minimized. ...
    (microsoft.public.win2000.cmdprompt.admin)
  • Re: ERROR : OXC00D1199
    ... > I CAN PLAY IT BY MP3 PLAYER WHEN THE RECORDED FINISHED ... > AGAIN BY MP3 PLAYER AND CANNOT PLAY BY WINDOWS MEDIA PLAYER TOO. ... > I THINK THE FILE IN ERROR AS I PLAY ANOTHER .WAV FILE ...
    (microsoft.public.windowsmedia.player)
  • Re: playing a .wav file...
    ... >>windows media player opening up? ... Just want to play the .wav file ...
    (microsoft.public.win2000.cmdprompt.admin)