Create an Alarm In Batch

Create an Alarm In Batch
Alright... In this instructable I will show you how to create an alarm in a batch file. When activated, a tone will come from the internal speaker of your computer, over, and over. If you are lazy, you can just download it in the last step! I highly advise you not to play around with batch if you are not familiar with it! If you aren't, check out these basic, Intermediate, and advanced, batch tutorials.
 
Remove these adsRemove these ads by Signing Up
 

Step 1Capture The "Alarm"

Capture The "Alarm"
In order to create an alarm, we will need a sound. There is a special character that when in a batch file or entered in command prompt, will cause an error and a tone will play through the internal speaker. In order to get that special character, you need to do a key combo in command prompt then save it so you can copy and paste it. That's what I'll do in the next few steps.
« Previous StepDownload PDFView All StepsNext Step »
83 comments
1-40 of 83next »
Oct 31, 2010. 3:12 PMsi13ntsl4y3r says:
I clicked on your link and got this:

@echo off
color fa
title password required
set tries=4
:top
cls
set /a tries=%tries%-1
if %tries% equ 0 (goto penalty)
echo you have %tries% attempts left.
echo please enter password
set /p password=
if %password%==boom (start www.google.com)
goto top
:penalty
exit

It works fine but I can't change the destination when you get the password right to a vbs, other batch, file folder, or word doc. Plz help
Dec 29, 2011. 8:33 AMthillryan says:
Heres the code you wanted

@echo off
color fa
title password required
set tries=4
:menu
if exist pass.bat goto top
goto passme
:passme
set /p pass=Enter Password:
echo set pass=%pass%>pass.bat
goto top
:top
cls
set /a tries=%tries%-1
if %tries% equ 0 (goto penalty)
echo you have %tries% attempts left.
set /p password=Please Enter Password:
call pass.bat
if %password%==%pass%(goto start
:start
start www.google.com
goto good
:good
echo Password Right
pause
:penalty
exit
Jun 24, 2011. 7:51 PMknexinglemon says:
∩
Apr 23, 2011. 2:23 PMjmarri says:
It dosen't work!!! all it says is "   "" is not recognized as a internal or external command... etc."
Jan 1, 2011. 2:58 PMjklujm says:
I NEED to know how to exit this thing!
Feb 5, 2011. 3:13 PMSuper_Nerd says:
press ctrl + c and then close the cmd window
Dec 23, 2010. 10:11 AMlegokid101 says:
you just close cmd. that works for me!
May 16, 2008. 3:30 AMGameV8 says:
For the people who don't have number pads to get the "special character" just go to the character map tool, pick any font, and go to unicode 2022. (Bullet)
UC.bmp
Dec 10, 2010. 3:02 AMmichaelb958 says:
Actually, I thought everyone had a number pad. On most laptops, there are number pad key markings on a set of keys on the right side of your keyboard - to use them, hold Fn and press one. (For example, to get a NumPad0 on my laptop (very important for the Alt+0160 character!) I press Fn+M.)
Oct 30, 2010. 8:25 AMsi13ntsl4y3r says:
what would be a script for a password that if typed incorrectly, the alarm would sound, all I see here are bits and pieces and I don't understand exactly what to type into notepad.
Jul 4, 2010. 12:19 AMcnis says:
good for you i got it thanks kidu
Mar 7, 2010. 5:18 PMAlex Deaton says:
Hey dude thanks for posting this i used your program to create a timer batch command!! i thing i might make a instructable for it ill give u credit for the alarm.

Feb 18, 2010. 11:20 AMVraniinho says:
I did all what u said... And I cant close it when I opet it... But im not hearing any beeping :S Why's that?
May 18, 2008. 10:34 AMlunchboxslayer27 says:
how do u shut it off if u make it yourself? im not gonna make it till i no!!
Jun 20, 2008. 9:22 PMchaster says:
u can just exit it like any old window
Dec 5, 2009. 8:38 PMchaster says:
right, except its not an exe...
Jun 21, 2008. 6:41 AMlunchboxslayer27 says:
cool! thanx
May 19, 2008. 2:00 PMlunchboxslayer27 says:
like, if u turn down ur speakers, will it go away?
May 26, 2008. 2:46 PMfwjs28 says:
it comes from the internal speaker......
Oct 3, 2009. 4:04 AMBlackHoleMan says:
I tried this, it's pretty cool, but I can't close the window or stop the beeping!
Oct 12, 2009. 12:05 AMsharlston says:
so how do you get it off?
Sep 5, 2009. 2:21 PMli789 says:
how come it shows up note pad with @echo and a dot?
Jun 6, 2008. 6:45 AMHardCoreHacker says:
Is there a way to do this completly without using batch but instead, notepad?
Aug 7, 2009. 4:55 PMDELETED_evilfrogie says:
(removed by author or community request)
Aug 16, 2009. 11:33 AMkroq-gar78 says:
it might not work, but you don't save it as a *.txt file. you select 'all files' when you are saving and save it as a *.bat file. i tihnk *.cmd files work too. but *.bat is just a lot more common
Jun 10, 2008. 11:06 PMpyro515 says:
I dont think so... or at least when i tried it i got an erro mesage...
Aug 8, 2008. 7:08 PMrodeleros says:
when i type 'cd desktop' nothing happens...
Aug 7, 2009. 4:54 PMDELETED_evilfrogie says:
(removed by author or community request)
Jun 20, 2009. 12:48 PMhey hey hey im fat albert says:
(removed by author or community request)
Apr 29, 2009. 7:36 PMXOIIO says:
ok, i love the idea, but i can't get it to work. can one of you send me the outling to put in, with details of where to put the password, it isnt very clear in any of these. by the way, i want it so if it is the wrong password, the alarm soungs, and if it is right, it will go to whatever programmong i put in such as messages, opening folders and files, ect. thanks.
May 23, 2009. 5:41 PMr0ck3t3r says:
I saw the same thing on http://kungscriptfu.blogspot.com/2009/05/how-to-program-batch-alarm-clock.html, and I think it was a little more clearly explained.
1-40 of 83next »

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
72
Followers
12
Author:Arbitror(Check out my blog!)
One of my favorite hobbies is dismantling electronics, then either combining them together to create something new, or adding components to make them better. I also like gadgets, whether it's taking t...
more »