:[READ_STATE]
for /F "tokens=* USEBACKQ" %%F IN (`cat state.txt`) DO (
set previous_state=%now_state%
set now_state=%%F
)
if %now_state%==%previous_state% (
echo [LOG] now_state is equal to previous_state, count - 1.
set /A retry_count=%retry_count%-1
) else if %now_state%==PRINT_STATE (
echo [LOG] stable printing mode, reset retry_count.
set retry_count=30
) else (
echo [LOG] now_state is not equal to previous_state, reset retry_count.
set retry_count=30
)
我一直编译不过
好像是 if %now_state%==%previous_state% 出问题
但是我又找不出来是哪里
我也没拼字错
有人看的出来吗