- @echo off&setlocal enabledelayedexpansion
- set /a m=3,j=1,i=1
- for /l %%i in (1,1,6) do (
- if %%i gtr !m! (
- set /a "s=!s!0,i*=%%i,j*=(%%i-m)"
- )else set "s=1!s!"
- )
- set s=0!s!&set /a i/=j
- for /l %%i in (1 1 !i!) do (
- for /l %%j in (1 1 6) do (
- if "!s:~%%j,1!" == "1" set "$%%i=!$%%i!:%%j.txt"
- )
- for /f %%j in ("!s:10= !") do set "j=%%j"
- set s=0!j:0=!!j:1=!1!s:*10=!
- )
- pushd "d:\文本\文本1\"
- for /l %%a in (1,1 210) do (
- set str=00%%a
- for %%b in ("!str:~-3!") do (
- for /l %%i in (1 1 !i!) do (
- set "s=!$%%i:*:=!"
- set "s=%%~b_!s::=+%%~b_!"
- copy /b !s! "..\文本2\%%~b_%%i.txt" >nul
- )
- )
- )
- pause
复制代码
|