本帖最后由 pcl_test 于 2015-7-6 00:45 编辑
回复 3# 思想之翼 - @echo off&setlocal enabledelayedexpansion
- cd /d D:\数据1\
- for /l %%a in (1001 1 1002) do (
- set n=%%a
- set n=!n:~1!
- (for /f "delims=" %%b in ('findstr /G:"!n!_1.txt" "!n!_2.txt"') do for /f "delims=" %%c in ('findstr "%%b" "!n!_3.txt"') do set /p=%%c )<nul>D:\数据2\!n!.txt
- echo;>>D:\数据2\!n!.txt
- )
- pause
复制代码
|