Re: playing a .wav file...
- From: Timo Salmi <ts@xxxxxxxx>
- Date: Wed, 24 Aug 2005 09:58:32 +0300
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 .
- Follow-Ups:
- Re: playing a .wav file...
- From: Michael Bednarek
- Re: playing a .wav file...
- References:
- playing a .wav file...
- From: Royce
- 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
|