假设你的变量为%first%
if %first% LSS 100 if %first% GEQ 10 set first=0%first%
if %first% LSS 10 set first=00%first%