March 6, 201214 yr Hi allI downloaded this .bat:@echo Off:alarm(alarm character)clsgoto alarmI 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 March 6, 201214 yr by bertikul
March 6, 201214 yr Something like this might solve your problem. Increase the 500 value if you need a longer alarm.@echo Offfor /L %%i in (0,1,500) do (call :alarm)goto end:alarm(alarm character)clsgoto :EOF:end Edited March 6, 201214 yr by allen2
March 6, 201214 yr Author allen2 THANK YOU SO VERY MUCH.It just works the way I wanted it to. I REALLY REALLY appreciate your help Edited March 6, 201214 yr by bertikul
March 6, 201214 yr 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
March 10, 201214 yr Author Yzöwl In fact your approach is much easier to controll timings and it works great.That's what I'using as alarm batchThanks a lot. Edited March 10, 201214 yr by bertikul
Create an account or sign in to comment