CODE: [Copy to clipboard]if not exist 1.txt echo 0 >1.txt for /f %%i in (1.txt) do set a=%%i if %a% LSS 50 set /a a+=1 & echo %a%>1.txt & reboot