返回列表 发帖
@echo off
for /l %%i in (1 1 999) do (
        set "var=00%%i"
        call echo %%var:~-3%%
)
pause>nul

TOP

@echo off
for /l %%i in (1 1 999) do (set var=00%%i && call echo %%var:~-4%%)
pause

TOP

for /l %%i in (1 1 999) do (set var=000%%i&call echo %%var:~-3%%)

TOP

@echo off&setlocal enabledelayedexpansion
for /l %%i in (1 1 999) do (
        set var=00%%i
        set var=!var:~-3!
        echo !var!
)
pause>nul

TOP

返回列表