@echo off (for /f "delims=" %%a in (test.txt) do ( setlocal enabledelayedexpansion set "line=%%a" set "line=!line:"nick":"=!" set "line=!line:","shopcard":=!" echo,!line! endlocal ) )>_ok.txt
太过依赖了啊 @echo off (for /f "delims=" %%a in (test.txt) do ( setlocal enabledelayedexpansion set "line=%%a" for /f "tokens=2 delims=:," %%b in ("!line!") do ( set "word=%%b" set "word=!word:"=!" echo,!word! ) endlocal ) )>_ok.txt