本帖最后由 77七 于 2023-9-10 20:00 编辑
这样行吗
- @echo off
- setlocal enabledelayedexpansion
- for /l %%l in (100001,1,110000) do (
- set a=%%l
- (for /l %%k in (1000,1,1999) do (
- set b=%%k
- for /f "useback delims=" %%a in ("D:\!a:~-4!\!b:~-3!.txt") do (
- for %%b in (%%a) do (
- set /p=%%b <nul
- )
- )
- echo=
- ))>>D:\!a:~-4!\!a:~-4!.txt
- )
- endlocal
- pause
复制代码
|