Oops..
Missed the fact that you wanted simple beeps as well.. This little program gives you massive control over system beeps in a tiny little package, all controlled from the command line:
http://members.optushome.c
pb
Main Topics
Browse All TopicsHow can I play sounds and beeps from a command? I think there sould be a way to play diferent types of sounds (or 'beeps') from a command or using batch file and probably specify duration of play as a parameter.
Also how can I play different sound files from DOS (e.g WAV, MP3, ... etc.). Here I mean playing the media sound file without having to launch GUIs for media players for these types of files.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Oops..
Missed the fact that you wanted simple beeps as well.. This little program gives you massive control over system beeps in a tiny little package, all controlled from the command line:
http://members.optushome.c
pb
pbarrette
Thanks for the suggestions of tools that could do the trick. I am alot more interested in using tools (or even sequence of keys for beeps) that come with the Windows (something similar to Tk 'bell' in built in some versions of UNIX).
VGR
I just tried CTRL-G on this Win98 SE but no sound (I will try with 2000 and XP later), please let me know how to use it, or there is any other suggestion.
Please keep the ideas comming...
Hi all,
The CTRL-G trick will work if done correctly:
1) Use EDIT to create a new batchfile.
2) Type:
@ECHO OFF
ECHO [CTRL-P][CTRL-G]
3) This should create a single, round character after the ECHO statement.
4) Save the batchfile and exit EDIT.
Now, when you run the batchfile, it should make the Windows default error beep (Usually the "Ping" sound).
You can also use the Windows built-in SNDREC32 and MPLAYER programs to play files. Just use:
SNDREC32 /PLAY /CLOSE X:\mypath\mysound.wav
MPLAYER /PLAY /CLOSE X:\mypath\mysound.wav
The problem with these is that it opens the associated program which the user can then close.
Hope this helps,
pb
Hi there...
OK, I will try to explain...
Why the B grade?
Well, there were three options given when accepting the answer to the question; Excelent, Good, and something else I do not remember (please correct me if I'm wrong). In this case I selected 'Good' and I had no idea what letter grade this translates to (actually I didn't even see the letter grade until after you mentioned it... I'm still a newbie on expert-exchange). I still believe however, that I was fair in assigning a grade because I had two related questions about playing some kind of audio (or beep sound) from a batch comand without opening new windows or the application playing the sound that require a user to close it. The answers you provided were very good and gave me something to work with (I can a beep sound using CTRL-G on XP and 2000 but not 98SE; also I can play wav files from a batch file but I still have to close the application window which was launched to play the file), these can work for now but I'm still not sure they solve my question completely. Please let me know of there is somethng I didn't understand.
What was the problem?
There is no problem, the grade assignment was based on the grading options available and how much help does the answer give me compared to what I was looking for.
And if there was a problem, then why not provide some feedback?
Again, no problem but see feedback above.
Thanks again to everyone.
Hi Henry,
I understand, but sometimes the answer is the answer regardless whether or not you are happy with it. Using the windows included software, there really isn't much that can be done. That's why I started with the utils.
Also, the CTRL-G method I posted does work in 98. That's the OS I tested it in. You must use the method I outlined, however. I expanded on this method because in your other post you asked for something similar to TK-BELL in Unix. The CTRL-G bell in DOS is exactly the same. It's the universal BELL.
Don't shoot the messenger,
pb
Business Accounts
Answer for Membership
by: pbarrettePosted on 2003-02-10 at 08:59:00ID: 7918794
Hi Henry,
audio2.htm l#wplany
pd/14419.h tml
For playing WAV files, you can't beat WPlany. It will play WAV, AU, IFF, SND and VOC files directly from the command line:
http://cws.internet.com/16
For MP3's there is MicroHof MP3 Player: http://www.simtel.net/pub/
I haven't tested that one personally, however.
pb