Jump to content

Recommended Posts

Posted (edited)

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

Posted (edited)

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
Posted (edited)

Yzöwl

In fact your approach is much easier to controll timings and it works great.

That's what I'using as alarm batch

Thanks a lot. :)

Edited by bertikul

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