Windows IT Pro is the leading independent community for IT professionals deploying Microsoft Windows server and client applications and technologies.
  
  
  Advanced Search 



JSI Tip 3760. How do I cause a batch file to beep for attention?

RSS
Subscribe to Windows IT Pro | See More Tips Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!


3760 » How do I cause a batch file to beep for attention? 04-Jun-01



To cause a batch file to beep for attention, you need to send a BEL character.

The easies way to do this is to open a CMD prompt and CD to a folder in your path. Then type:

edit bell.bat
@echo<space><CTRL+P><CTRL+G><ENTER>
<ALT+S>           (Saves bell.bat)
<ALT+X>           (Exits edit)
NOTE: <> indicates that you type the key(s) within the <>.

            CONTROL CHARACTERS

   Decimal  Hexadecimal  Character  Mnemonic

   00       00           NUL        ^@
   01       01           SOH        ^A
   02       02           STX        ^B
   03       03           ETX        ^C
   04       04           EOT        ^D
   05       05           ENQ        ^E
   06       06           ACK        ^F
   07       07           BEL        ^G
   08       08           BS         ^H
   09       09           HT         ^I
   10       0A           LF         ^J
   11       0B           VT         ^K
   12       0C           FF         ^L
   13       0D           CR         ^M
   14       0E           SO         ^N
   15       0F           SI         ^O
   16       10           DLE        ^P
   17       11           DC1        ^Q
   18       12           DC2        ^R
   19       13           DC3        ^S
   20       14           DC4        ^T
   21       15           NAK        ^U
   22       16           ETB        ^W
   23       17           SYN        ^V
   24       18           CAN        ^X
   25       19           EM         ^Y
   26       1A           SUB        ^Z
   27       1B           ESC        ^[
   28       1C           FS         ^\ 
   29       1D           GS         ^]
   30       1E           RS         ^^
   31       1F           US         ^_



End of Article



Reader Comments

You must be a registered user or online subscriber to comment on this article. Please log on before posting a comment. Are you a new visitor? Register now




Top Viewed ArticlesView all articles
Anti-Virus Vendors Prepare for War with Microsoft ... Again

When Microsoft announced its Windows Live OneCare security and PC health product over five years (as MSN OneCare), Symantec, McAfee, and the other consumer-oriented security vendors reacted with stunning vigor. ...

What You Need to Know About Microsoft's x64 Server Product Plans

What do Longhorn Server, Windows Compute Cluster Server, and Windows Vista have in common? The x64 platform. ...

Command Prompt Tricks

One reader shares his tip for setting up the command prompt to reflect a remote path. ...


Related Events 7 Ways To Get More From Your SharePoint Deployment Now

Check out our list of Free Email Newsletters!

Related Resources Introducing Left-Brain.com, the online IT bookstore
Looking for books, CDs, toolkits, eBooks? Prime your mind at Left-Brain.com

Discover Windows IT Pro eLearning Series!
Clear & detailed technical information and helpful how-to's, all in our trademark no-nonsense format

Test Drive IT Solutions and Get Free Music Downloads
Solve your toughest IT problems with these free downloads and receive 5 free music downloads!


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro DevProConnections IT Job Hound ITTV
IT Library Technology Resource Directory Connected Home asp.netPRO Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 © 2009 Penton Media, Inc. Terms of Use | Privacy Statement | Reprints and Licensing