Play a basic sound in DOS promt (Batch file)
Posted: 18 Feb 2008 21:45
Using the DOS command TYPE for some files you can hear a sound, then (in some cases) the process displaying the file's content stops (few characters later). This is my start point idea to play a sound in DOS.
From an Excel file (.xls) I extracted a character playing a sound, and I surrounded it by letter 'a' and 'b' in this file: http://airfirst.ch/b2/SoundChar.txt
In fact, it is just the BELL character in the ASCII table:
http://www.asciitable.com
So, here is a way to play a system sound in DOS:
where the character after "ECHO " is this BELL character. It looks like a big dot (in EditPlus editor).
Do you know another way to play a sound in DOS?
Any comment, improvement will be appreciate.
Thanks.
"System sound" means sound played by motherboard's speaker, so you can hear it without external speakers or sound card.
From an Excel file (.xls) I extracted a character playing a sound, and I surrounded it by letter 'a' and 'b' in this file: http://airfirst.ch/b2/SoundChar.txt
In fact, it is just the BELL character in the ASCII table:
http://www.asciitable.com
So, here is a way to play a system sound in DOS:
Code: Select all
ECHO
where the character after "ECHO " is this BELL character. It looks like a big dot (in EditPlus editor).
Do you know another way to play a sound in DOS?
Any comment, improvement will be appreciate.
Thanks.
"System sound" means sound played by motherboard's speaker, so you can hear it without external speakers or sound card.