回复 5# tbjx138
或许可以这样:- @echo off&setlocal enabledelayedexpansion
- for /f "delims=" %%a in (1.txt) do (
- echo,%%a>>$
- for /f "tokens=1,4 delims==" %%b in ("%%a") do (
- if /i "%%b" == "N;CHARSET" set "Name=%%c"
- )
- if /i "%%a"=="END:VCARD" move $ "!Name:;=!.txt"
- )
- pause
复制代码
|