本帖最后由 flyinnet9 于 2015-12-30 14:34 编辑
- @echo off
- setlocal ENABLEDELAYEDEXPANSION
- for /f %%a in (index.txt) do set %%a=1
- (for /f "tokens=1-2" %%a in (ddi.txt) do if defined %%a if defined %%b echo.%%a %%b)>tmp.txt
- for /f "tokens=1-2" %%a in (link.txt) do set %%b=%%a
- (for /f "tokens=1-2" %%a in (tmp.txt) do echo.!%%a! !%%b!)>out.txt
- del tmp.txt
复制代码
|