- @ECHO OFF&setlocal enabledelayedexpansion
- for /l %%i in (0,1,9) do set /a _%%i=%%i+1
- for /l %%i in (1,1,4) do (
- for /l %%j in (!_%%i!,1,5) do (
- set /an+=1
- set "$!n!=%%i %%j"
- )
- )
- for /l %%i in (0,1,9) do (
- for /l %%j in (0,1,9) do (
- set /a "$%%i_%%j=(%%i+%%j)%%10"
- )
- )
-
- for /l %%i in (1001,1,1210) do (
- set n=%%i
- md "D:/数据/!n:~1!" 2>nul
- )
- set n=1000
- for /l %%a in (1,1,7) do (
- for /l %%b in (!_%%a!,1,10) do (
- for /l %%c in (!_%%b!,1,10) do (
- for /l %%d in (!_%%c!,1,10) do (
- set /an+=1
- for /l %%e in (100000,1,199999) do (
- set s=%%e
- for /f "tokens=1-8" %%1 in ("!$%%a! !$%%b! !$%%c! !$%%d!") do (
- for /f "tokens=1-4" %%i in ("!s:~%%1,1!_!s:~%%2,1! !s:~%%3,1!_!s:~%%4,1! !s:~%%5,1!_!s:~%%6,1! !s:~%%7,1!_!s:~%%8,1!") do (
- set /a t=10!$%%i!!$%%j!!$%%k!!$%%l!+1
- >>"D:/数据/!n:~1!/!t:~1!.txt" set /p =!s:~1! <nul
- )
- )
- )
- )
- )
- )
- )
- pause
复制代码
|