729Views4Replies

Author Options:

how do you PROGRAM a batch file to make sound? Answered

I think it is time we all knew how to do this long asked Question
if someone posts a good batch i will test it and post my comments

4 Replies

user
Prof. Pickle (author)2012-12-14

The only noise (to my knowledge) that can be activated through a batch script, is the BEL character.

To extract it, type this in your command prompt.

@echo CTRL+G > "noise.txt"
start "noise.txt"


Copy and paste the contents of the file that opens up, then run this code.

del noise.txt

..And there you have it! Your very own BEL character.

Remember to replace CTRL+G with you actually pressing those two buttons.

Select as Best AnswerUndo Best Answer

user
Laserman595 (author)2009-11-10

I have looked but they all require you to push a lot of buttons to make an error sound and that is all

Select as Best AnswerUndo Best Answer

user
lemonie (author)Laserman5952009-11-10

One way is to echo the bell character, which is ALT-NUM7 - you get a mainboard beep. Otherwise open a sound file.
Have you ever looked at http://www.dostips.com/?

L

Select as Best AnswerUndo Best Answer

user
lemonie (author)2009-11-08

You don't know?
The answers are out there, have you looked?

Echo ^G

L

Select as Best AnswerUndo Best Answer