Home » Questions » Computers [ Ask a new question ]

Play a sound (maybe WAV?) from Windows line command

Play a sound (maybe WAV?) from Windows line command

How can i play a sound (CPU Beep or wav, don't matter what) using the Windows cmd?

Asked by: Guest | Views: 351
Total answers/comments: 4
Guest [Entry]

"echo ^G

Where ^G is CTRL + G or Alt + 7 on the keypad."
Guest [Entry]

"(While an old thread, people will find it on a search).
I see someone has already recommended VLC. I use it to play a sound in Windows without anything visible using parameters:
""c:\Program Files (x86)\videolan\vlc\vlc.exe"" --qt-start-minimized --play-and-exit ""c:\Program Files (x86)\videolan\vlc\Windows Exclamation.wav""

The main addition to the previous comment is --qt-start-minimized The paths and quote characters are just to illustrate a typical use. I've used this unchanged in XP, 7, 10; I expect Vista and 8.x to work too."
Guest [Entry]

"If a plain beep is alright, echo the character with the value 7, the so-called bell character. Note, however, that beeps can be turned off.

If you want something else, you'll have to launch an application that does the trick."
Guest [Entry]

You could write a simple console application that took the sound file (or sound id) as an argument and called PlaySound