rem delay(無効).bat @echo off set a=1 set /a a+=1& echo %a% pause>nul 输出结果:1
delay(有効).bat @echo off setlocal enabledelayedexpansion set a=1 rem set /a a+=1& echo %a% set /a a+=1& echo !a! pause>nul 输出结果:2