脚本去重_Bat : 将重复的字符串去掉(按行) 亲测可用: @echo off (echo 清除重复行后的文件内容:& echo.)>aa.txt for /f "delims=" %%i in (test.txt) do ( if not defined %%i set %%i=A & echo %%i>>aa.txt) start aa.txt