1
I am beginner in batch
And I’m trying to create a very simple alarm clock program. The user must set the time you want the alarm clock to ring and the program will check the time of the computer. If the time is the same as set, the program will print "BEEP!". This is my code:
@echo off
set /p %tempoDefinido%=Defina um tempo para o alarme:
:wait
if %time:~0,8% equ %tempoDefinido% (echo BEEP!) else (goto wait)
pause
The problem here is that the program does not go back to the :wait
. It just goes on until the pause
and close. What I’m doing wrong ?
I had forgotten that detail, thank you very much. It worked here <3
– JeanExtreme002