Do you know the CMD line to make a beep?
Asked by
XOIIO (
18328)
December 2nd, 2010
I need a line in my batch script to make a couple quick beeps from the built in speaker. Any help?
Observing members:
0
Composing members:
0
7 Answers
Yeah, I noticed. It works from the command line, but not from within a batch file.
Okay, do this, then.
At the command line type:
echo @echo (Alt Key + 7 (from the numeric keypad !)) > beep.bat
What you’ll see on the screen as you type this is:
echo @echo ^G > beep.bat
This will create a batch file called beep.bat, which will beep when you run it.
When you want the beep to sound during execution of another batch file, just use the line:
Call beep.bat
in your main batch file.
Wierd, it doesn’t do anything. I dont think being on a lappy would make a difference, right?
Oh nvm, I got it to work.
Is there a way to change the pitch?
Dang, but I had a great idea!
Save this as run.vbs on your desktop
Set WshShell = CreateObject(“WScript.Shell”)
WshShell.Run chr(34) & “annoy.bat” & Chr(34), 0
Set WshShell = Nothing
Then save this as annoy.bat on your desktop
@echo off
title annoy
color 0a
:loop
@echo
ping localhost -n =%random%%100+1
GOTO loop
Then run run.vbs
Would be good on someones computer. If you dont like them
Answer this question
This question is in the General Section. Responses must be helpful and on-topic.