General Question

XOIIO's avatar

Do you know the CMD line to make a beep?

Asked by XOIIO (18259points) 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

XOIIO's avatar

Doesn’t work:(

CyanoticWasp's avatar

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.

XOIIO's avatar

Wierd, it doesn’t do anything. I dont think being on a lappy would make a difference, right?

XOIIO's avatar

Oh nvm, I got it to work.

Is there a way to change the pitch?

CyanoticWasp's avatar

Not that I know of.

XOIIO's avatar

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
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




to answer.

This question is in the General Section. Responses must be helpful and on-topic.

Your answer will be saved while you login or join.

Have a question? Ask Fluther!

What do you know more about?
Knowledge Networking @ Fluther