When using the CHOICE command, is there a way to make other code run at the same time?
For example, I am trying to create a timer that counts up. I want to make it so the choice option appears while the timer is sill running.
@echo off
set /a time=0
:up
cls
echo Time: %time%
echo Press "s" to start
CHOICE /c:s /n > nul
if errorlevel 1 goto run1
:run1
cls
echo Time: %time%
echo Press "p" to pause
ping localhost -n 2 >nul
set /a time=%time%+1
CHOICE /c:p /n > nul /t 1
if errorlevel 1 goto up
goto run1
If this question seems confusing or you don't know what I am asking, post a comment. I am trying to reword this question the best I can.