只要带有 a 这个字符,就会把这一行批量删除 亲测可用 @echo off rem 道鸢 for /f "tokens=*" %%a in (input.txt) do @echo %%a|find /v /i "a">>output.txt pause