Heres my Code
SET /A "index = 1"
SET /A "count = 30"
timeout 5
:while
if %index% leq %count% (
"tinytask" Test.rec
taskkill /F /IM tinytask.exe
timeout 3
set /A "index = index + 1"
goto :while
)
it's supposed to open a tiny task recording and then after it's done kill it/ end the task and then wait 3 seconds before doing it again. it would do this 3 times. but instead, it doesn't kill the tiny task and it doesn't stop at the 3rd time if I kill it myself it will go through the loop all over again. Please Tell me What I'm doing wrong!