Hello,
i have this batch file, which makes constantly a loop. I want the user to be able to terminate it in the batch, not just clicking the X.
This is what i need (somehow):
@echo off
:proc
cls
rem All kind of stuff...
echo Hit any key to terminate...
sleep 1
@pause>nul
But, of course, sleep and pause can't work at the same time.
How is it possible?