bertikul Posted March 6, 2012 Posted March 6, 2012 (edited) 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, 2012 by bertikul
allen2 Posted March 6, 2012 Posted March 6, 2012 (edited) 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, 2012 by allen2
bertikul Posted March 6, 2012 Author Posted March 6, 2012 (edited) allen2 THANK YOU SO VERY MUCH.It just works the way I wanted it to. I REALLY REALLY appreciate your help Edited March 6, 2012 by bertikul
Yzöwl Posted March 6, 2012 Posted March 6, 2012 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
bertikul Posted March 10, 2012 Author Posted March 10, 2012 (edited) 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, 2012 by bertikul
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now