Jump to content
Sign in to follow this  
Digerati

Make a Batch File that Beeps

Recommended Posts

Note: this is specifically directed to the internal PC Speaker, not the normal multimedia soundcards and speakers on modern equipment.

 

 

You can write a DOS batch file that beeps by doing the following- at the DOS prompt type:

echo @echo (Alt-7)>beep.bat

 

but instead of typing the characters: "(Alt-7)", you hold down the Alt key and press 7 on the numeric keypad.

Don't use the 7 on the qwerty part of the keyboard, it has to be on the keypad, and Num Lock has to be on.

 

The effect of this is to output the characters:"@echo " followed by a non-ASCII character with a decimal value of 7, into a new file called beep.bat

 

You'll probably want to set the properties for the beep.bat DOS window to close on exit too.

Share this post


Link to post
Share on other sites
Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...