bertikul Posted March 6, 2012 Share 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 Link to comment Share on other sites More sharing options...
allen2 Posted March 6, 2012 Share 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 Link to comment Share on other sites More sharing options...
bertikul Posted March 6, 2012 Author Share 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 Link to comment Share on other sites More sharing options...
Yzöwl Posted March 6, 2012 Share 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 Link to comment Share on other sites More sharing options...
bertikul Posted March 10, 2012 Author Share 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now