Click here for important information about

How to make a batch file beep?

March 24, 2012 at 19:24:02
Specs: Windows 7
I found many references but all say to "Hold alt and press 7" but I don't have a number pad on my laptop and the numbers up top don't work. Please help.

See More: How to make a batch file beep?

March 24, 2012 at 21:09:40
Try ctrl-g

Report •

March 25, 2012 at 02:03:17
To gain access to a laptop's keypad area, use the function key (Fn) nestled somewhere between the left ctrl and alt keys:
M = 0
J = 1
K = 2
L = 3
U = 4
I = 5
O = 6
7 = 7
8 = 8
9 = 9

When your only tool is a hammer, every problem looks like a nail.

Report •

March 25, 2012 at 02:46:17
From here:

July 26, 2011 • I guess I wasn't the only one who once dismissed FORFILES.EXE as an obsolete mimic of NT's internal FOR command.
Rob Van Etta had a closer look and found out it can do more, like output "special" characters using their hexadecimal ASCII value.
For example:

FORFILES /P %~dps0 /M %~nxs0 /C "CMD /C ECHO 0x07"

will make the speaker emit a beep (ASCII character 7).
Of course there are other ways to do this, this is just a simple example.
I used this trick to improve my own Chr.bat: it now accepts decimal values from 32..126 as well as hexadecimal values.

Thanks Rob

Report •

Related Solutions

March 25, 2012 at 17:44:54
@orangeboy Only on GOOD laptops. I don't even have a SD slot.
@wizard_fred I believe that is for in the cmd.exe not a text editor.
@Judago I ran this code:
@echo off
echo •
and got this output:
press any key to continue . . .

Report •

March 26, 2012 at 00:54:03
bbman25: Ctrl-g works in old text editors. The beep is rather faint when run on a fast computer. Tried on Win 7.

Report •

March 27, 2012 at 20:43:46
echo.<CTRL + G>

Only works in cmd. It doesn't work in a file.

Report •

March 28, 2012 at 12:57:43
try going to command prompt

type in echo "CTRL + G" > testsound.bat

then i just call it when i want a beep

call testsound.bat


Report •

March 28, 2012 at 23:06:32
@mikelinus It needs to be
echo.echo."ctrl + G">>"testbeep.bat"
to work.
Also. It doesn't work :( It appears "echo.(BEL)" (BEL being one symbol) in my text editor (Notepad++) and it echos nothing when run...

Also: You know when you write to a text file how it always goes on a new line? Well how can I make it so it always writes on the same line?

Report •

March 29, 2012 at 06:43:19
Mine worked just fine, maybe a difference between xp and 7

i typed at c:\
echo ^G > soundcheck.bat

then called it from a batch file and no problem

Report •

Ask Question