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!


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
Microsoft, News Corp. Discuss Locking Out Google

Microsoft and Rupert Murdoch's News Corp. recently discussed an alliance that would counter Google's fledgling online news service. ...

2009 Windows IT Pro Editors' Best and Community Choice Awards

Picking a favorite product from an impressive crowd of competitive offerings is never an easy task, and such was the case with our Editors' Best and Community Choice awards this year. ...

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


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
Left-Brain.com Technology Resource Directory asp.netPRO ITTV Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 © 2009 Penton Media, Inc. Terms of Use | Privacy Statement