leap 当前离线
三级士官
@echo off for /l %%i in (0,1,9) do ( for /l %%j in (0,1,9) do ( for /l %%k in (0,1,9) do ( if %%i%%j%%k neq 000 (echo %%i%%j%%k) )))>>1.txt pause复制代码
TOP
paladinjin 当前离线
中尉
@echo off for /l %%i in (0,1,9) do ( for /l %%j in (0,1,9) do ( for /l %%k in (1,1,9) do ( set /p=%%i%%j%%k<nul ) ) ) pause>nul复制代码
jixun66 当前离线
上等兵
@echo off set /a a=%a%+1 echo %a% if %a%==999 pause %0复制代码
jonm158 当前离线
列兵
fish 当前离线
@echo off for /l %%i in (001,1,999) do ( if %%i lss 100 ( set /p"=0"<nul if %%i lss 10 ( set /p"=0"<nul ) ) echo %%i ) pause复制代码
wkdxz 当前离线
一级士官
@Echo off setlocal enabledelayedexpansion for /l %%a in (1 1 999) do ( set a=00%%a set/p =!a:~-3! <nul ) pause>nul复制代码
guihao 当前离线
@echo off for /l %%i in (1,1,999) do ( set var=00%%i call echo %%var:~1,-3%%>>1.txt ) 1.txt复制代码
for /l %%i in(1,1,9) do echo 00%%i for /l %%i in(10,1,99) do echo 0%%i for /l %%i in(100,1,999) do echo %%i复制代码
poxi 当前离线
二级士官
@echo off :1 set /a js+=1 set mun=%js% if %js% lss 100 set mun=0%js% if %js% lss 10 set mun=00%js% echo %mun% if "%js%"=="999" goto 2 goto 1 :2 pause复制代码
lvyaojian 当前离线
@echo off for /l %%i in (0,1,9) do ( for /l %%j in (0,1,9) do ( for /l %%k in (1,1,9) do echo %%i%%j%%k ) ) pause复制代码
wsjxwj 当前离线
少校
原帖由 novaa 于 2008-1-7 19:23 发表 @echo off&setlocal enabledelayedexpansion for /l %%i in (1001 1 1999) do ( set var=%%i echo !var:~1!>>aaa.txt ) pause
kuku2599 当前离线
neorobin (neorobin)当前离线
技术组成员
cmd /v:on /q /c "del ~&(for /l %%a in (9001,1,9999) do set n=%%a&echo !n:*9=!>>~)&edit ~"复制代码
cmd /v:on /q /k "mode con lines=1001&(for /l %%a in (9001,1,9999) do set n=%%a&echo !n:*9=!)"复制代码
echo off&mode con lines=1000&setlocal enabledelayedexpansion&(for /l %%a in (1001,1,1999) do set n=%%a&&echo !n:*1=!)&pause复制代码
x576380361 (xulancan)当前离线
@echo off setlocal enabledelayedexpansion for /l %%i in (1001 1 1999) do ( set a=%%i echo !a:~1,3! ) pause>nul复制代码
vh211001 当前离线
zgq0301 当前离线
@echo off setlocal enabledelayedexpansion for %%a in (0,1,2,3,4,5,6,7,8,9) do ( for %%b in (0,1,2,3,4,5,6,7,8,9) do ( for %%c in (0,1,2,3,4,5,6,7,8,9) do ( echo %%a%%b%%c ) ) ) pause复制代码