@ECHO OFF
:loop
%*
timeout /t 5
goto loop
watch.bat dir
will run the given command every 5 seconds
REM HARD CODED VERSION , alternate timer ping 1.1.1.1 -n 1 -w 5000 >NUL
@ECHO OFF
:loop
dir
timeout /t 5
goto loop
@ECHO OFF
:loop
%*
timeout /t 5
goto loop
watch.bat dir
will run the given command every 5 seconds
REM HARD CODED VERSION , alternate timer ping 1.1.1.1 -n 1 -w 5000 >NUL
@ECHO OFF
:loop
dir
timeout /t 5
goto loop