本帖最后由 CrLf 于 2014-8-26 00:26 编辑
- @echo off
- for /f "tokens=1* delims=:" %%a in ('findstr /n . 账号列表.txt') do set "_%%a=%%b"
- (for /f "delims=" %%a in (旧.txt) do (
- for /f "tokens=1* delims=_" %%b in ("%%a") do (
- if %%a lss 0 (
- set /a n+=1
- call call echo %%b_%%%%_%%n%%%%%%]
- )
- )
- for /f "eol=[ tokens=1* delims==" %%b in ("%%a") do (
- if %%b==1 (
- call call echo 1=%%%%_%%n%%%%%%
- ) else (
- echo %%a
- )
- )
- ))>新.txt
- pause
复制代码
|