How to emit sound using built-in speaker from a command line in Windows and Linux?
feedback
|
|
You can call the Win32 MessageBeep operating system function. On Windows XP or later, type:
I tried it years ago and at first I didn't believe it would work. But that's Microsoft suggested way, as according to their MSDN website:
| |||
|
feedback
|
where ^ is the ctrl key. Note this doesn't work on Windows 7 - The beep is redirected to the audio system. | |||
feedback
|
|
| |||||
feedback
|