10:24 - Friday, 25 April 2014

How To Make The PC Speaker Beep From The Windows 7 Command Prompt?

#Topics: beep windows 7 64,Beeper Device FIX for Windows 7 NTVDM,c speaker beep windows 7,command prompt speaker beep,how do i get a beep in the windows 7 64 bit command line

I’m running some lengthy video encodes using the Handbrake command line interface. After all my encodes are done, I would like to have the PC speaker beep, as I usually turn my large external speakers off.

On Linux I would install the “beep” package, but so far I haven’t found such a program for Windows 7.

Possibly related links:

Edit: The question seems to have morphed into “How to make Windows 7 beep the PC speaker?”, for which the answer provided by HarryMC is the most appropriate.

It would help to know whether your Windows 7 is 64-bit or 32-bit.

From Default Beep PC Speaker changed in windows 7 – How to get back to old style :

The default beep is controlled by a
driver under,
Maybe if you switched it out with a
driver from XP/Vista it would increase
the volume.

To see this driver you have to open
device manager then click on View >
Show hidden devices. Then under
Non-Plug and Play Drivers you’ll see
“Beep.” This is the driver that runs
your beep. Right click on it then
choose properties and go to the driver
tab, then click on Driver Details…
This shows the file version which
looks like it’s been change with
Windows 7. So replace it with an
older version and see what happens.

Procedure to follow :

  1. Boot from an UBCD4WIN disc (or BartPE if you don’t have an SATA hard
  2. Take ownership of the “C:WindowsSystem32DriversBeep.sys”
    file and give the local
    “Administrators” Group “Full Control”
  3. Rename “Beep.sys” to “Beep.old” (just in case)
  4. Copy “Beep.sys” from an XP machine to this location.

In Windows 7, Beep was rewritten to pass the beep to the default sound device for the session. This is normally the sound card, except when run under Terminal Services, in which case the beep is rendered on the client.

(source) (An article on why) For those who can’t be bothered to read: It was to reduce manufacturing cost

But if you are content with having the beep come out of your speakers a simple batch file can do it.

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.


Grab NirCmd and run
nircmd stdbeep.



This little VDD driver fixes a problem with the Windows 7 NTVDM where the PC Speaker output is not wrapped correctly. This may be due to the fact that the functionality of the BEEP.SYS System driver was moved to the Usermode Sound Agent. For further information, see the blog of Larry Osterman. This driver tries to fix the problem by hooking the NTVDM-Function resposible for the Beep (LazyBeep) and replace it with our own implementation that has various options to fix the Problem. Read the changelog here…(support in german but you’re allowed to post in english too)


If you have python 2.x installed this line in a bat-file works

python -c "print '7'"