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)

allen2 THANK YOU SO VERY MUCH.

It just works the way I wanted it to.

I REALLY REALLY appreciate your help

:thumbup

Edited by bertikul
Posted

Attached is a similar yet alternative approach using PING.

I include it simply as a way to get more control over your timings, the '30' I used roughly approximates to 30 seconds.

30sBellEnd.cmd

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

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