1191Views4Replies

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

Comments

The forums are retiring in 2021 and are now closed for new topics and comments.
0
Prof. Pickle
Prof. Pickle

8 years ago

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.

0
Laserman595
Laserman595

11 years ago

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

0
lemonie
lemonie

Reply 11 years ago

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

0
lemonie
lemonie

11 years ago

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

Echo ^G

L