Jump to content

Stop an everlasting alarm sound batch file


Recommended Posts

Hi all

I downloaded this .bat:

@echo Off

:alarm

(alarm character)

cls

goto alarm

I want to use it with Real Temp. The problem is that it runs forever (goto alarm). I want it to run/beep for sometime, like 30-60 seconds, and then stop/exit.

Can anyone help me with that PLEASE?

THANKS in advance

Edited by bertikul
Link to comment
Share on other sites


Something like this might solve your problem. Increase the 500 value if you need a longer alarm.

@echo Off
for /L %%i in (0,1,500) do (call :alarm)
goto end
:alarm
(alarm character)
cls
goto :EOF
:end

Edited by allen2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...