196Views3Replies

Author Options:

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

...

Comments

The forums are retiring in 2021 and are now closed for new topics and comments.
0
g-one
g-one

Best Answer 11 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
Re-design
Re-design

Answer 11 years ago

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

0
RelaxedSoup
RelaxedSoup

11 years ago

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