168Views3Replies

Author Options:

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

...

Discussions

0
None
g-one

Best Answer 9 years ago

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

0
None
Re-designg-one

Answer 9 years ago

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

0
None
RelaxedSoup

9 years ago

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