- @echo off
- SetLocal EnableDelayedExpansion
- set /a n = 0, m = 0
-
- for /f "delims=/ tokens=2,*" %%a in (web.txt) do (
- set /a n += 1
- set _!n!=%%b
- )
-
- (for /f "delims=" %%L in (h.txt) do (
- set /a m += 1
- for %%R in (_!m!) do set var=%%~fL!%%R!
- echo !var:/=\!
- )) >news.txt
复制代码
[ 本帖最后由 tmplinshi 于 2011-1-18 12:58 编辑 ] |