155Views3Replies

Author Options:

Is it possible to run a command to make Command prompt produce sound? Answered

...

3 Replies

user
g-oneBest Answer (author)2009-09-27

Have a look to this batch code. The unknown sign is the ASCII character 07. If you copy&paste; it to notepad and save as *.bat it should work. @echo off :beep cls echo  ping -n 2 localhost>nul goto beep

Select as Best AnswerUndo Best Answer

user
Re-design (author)g-one2009-09-29

What's the character after "echo"? It shows up as a square with some symbols in it.

Select as Best AnswerUndo Best Answer

user
RelaxedSoup (author)2009-09-26

Yes, it is (in C++ at least). Include "\a" in your code (i.e. cout << "Hello world! \a";).

Select as Best AnswerUndo Best Answer