7661Views24Replies

Author Options:

Batch Beeps Answered

Some kids at my school have created some sort of command prompt to where it plays beeps at different pitches to create almost what one would call music. I was quite amazed by this and was wondering if anyone else knew how to make these sounds? All I know is that command prompt is involved. Thanks :)

24 Replies

user
Zane Studios (author)2017-02-13
user
will421 (author)2011-02-10

I have a sneaking suspicion that he used VBS instead of BAT.

Select as Best AnswerUndo Best Answer

user
Laserman595 (author)2010-02-10

i dont recomend this but

type
@echo off
title Alarm Clock
:start
cls
color f0
echo.
echo Use 24 hour clock
echo.
set /p a=Set Alarm:
cls
echo.
echo Alarm set to %a%.
:alarm
if %time:~0,5% EQU %a% goto alarmset
goto alarm
:alarmset
color fc
echo
echo
echo
cls
echo.
echo It's %time:~0,5%!
echo.
echo Press 1 to acknowledge.
choice /n /c:12 /t:2,1
if errorlevel 2 goto alarmset
if errorlevel 1 goto sleep
goto alarmset
:sleep
goto start


It was supposed to be a simple timer but when i typed in 8:31 it went crazy it made a bunch of loud random beeps and displayed

"  " is not reconized as an internal command

Select as Best AnswerUndo Best Answer

user
XOIIO (author)Laserman5952010-12-02

What is the actual line that makes the beep?

Select as Best AnswerUndo Best Answer

user
account3r2 (author)Laserman5952010-09-24

@echo off
title Alarm Clock
:start
cls
color f0
echo.
echo Use 24 hour clock
echo.
set /p "a=Set Alarm:"
cls
echo.
echo Alarm set to %a%.
:alarm
if %time:~0,5% EQU %a% goto alarmset
goto alarm
:alarmset
color fc
echo .
echo .
echo .
cls
echo.
echo It's %time:~0,5%!
echo.
echo Press 1 to acknowledge.
choice /n /c:12 /t:2,1
if errorlevel 2 goto alarmset
if errorlevel 1 goto sleep
goto alarmset
:sleep
goto start

i know you at least need this instead of what you have

Select as Best AnswerUndo Best Answer

user
account3r2 (author)Laserman5952010-09-24

maybe 8:30:00 or 08:30:00 would work?

Select as Best AnswerUndo Best Answer

user
TheBatchies (author)Laserman5952010-02-28

Well, when it says 24 hour clock...

HOW 'BOUT YA USE A 24 HOUR CLOCK!

Haha, 8:31 won't work, type in 20:31 instead.

Select as Best AnswerUndo Best Answer

user
Laserman595 (author)TheBatchies2010-03-07

ya um if it truly is a 24-hour clock 8:31 would still work or at least 08:31 (wich I also tried) or are you trying to make yourself fell better over your failed batch?

Select as Best AnswerUndo Best Answer

user
TheBatchies (author)Laserman5952010-03-12

24-hour clock means, like, what the army uses.

Get to your post at seventeen hundred hours!

Familiar? 8:30 would be translated 20:30.

Select as Best AnswerUndo Best Answer

user
Laserman595 (author)TheBatchies2010-03-17

ummm...  Ger to your post at o-eighthundered hours!    like what the army uses. Dont cha know?

Select as Best AnswerUndo Best Answer

user
TheBatchies (author)Laserman5952010-02-28

Hey, that's my code! :)
Not random beeps, three at a time.

Select as Best AnswerUndo Best Answer

user
Laserman595 (author)TheBatchies2010-03-07

It did not make three at a time, it was about 24 thousand beeps of diffrent tones at a time.

Select as Best AnswerUndo Best Answer

user
NachoMahma (author)2008-02-05

. Have y'all never heard of Google?

Select as Best AnswerUndo Best Answer

user
account3r2 (author)NachoMahma2010-09-21

I've never heard of such a thing in my entire life! Tell me more about this... "Google" you speak of...

Select as Best AnswerUndo Best Answer

user
TheBatchies (author)NachoMahma2010-01-23

Woah... That's AWESOME!! How come I didn't know of this?

Select as Best AnswerUndo Best Answer

user
Goodhart (author)NachoMahma2008-02-05

As a reminder, maybe they should all get google toolbars ? :-)

Select as Best AnswerUndo Best Answer

user
TheBatchies (author)2010-01-23

I know what he means...

Yes, you can make a beep when you do the ALT+7 trick, byt what about different pitches? That is what he means, and if you search "batch beep different pitches" you end up here and a bunch of other places that are of no help.

Select as Best AnswerUndo Best Answer

user
Laserman595 (author)2009-11-07
 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.

The effect of this is to output the characters:"@echo " followed by a non-ASCII character with a decimal value of 7, into a new file called beep.bat

If you put beep.bat in a directory on your PATH, you can make your winbatch files beep by adding:

 RunIcon("beep.bat","")  
to your *.wbt file.

You'll probably want to set the properties for the beep.bat DOS window to close on exit too.
if this was what your looking for
if googled it!

Select as Best AnswerUndo Best Answer

user
11010010110 (author)2009-01-01

you can make a single beep (like the one when you power up the computer) as follows i tried it on windiows 95. not sure if works in newer windows open dos editor (edit) to make the bat file type echo (and some text if you want) switch num lock on hold right alt and enter 16 on the num pad hold right alt and enter 7 on the num pad kinda dot should appear when echo comes to write this dot the computer pauses for a second and beeps you can include the dot (or dots) in some other text in the echo command or in an external text file and access it with the type command

Select as Best AnswerUndo Best Answer

user
Padlock (author)2008-08-25

Google nircmd... It has a beep command you have to look in the help file

Select as Best AnswerUndo Best Answer

user
its a lion (author)2008-01-28

Oooh I want to know how to do this.

Select as Best AnswerUndo Best Answer