批处理删除文本文件中的空行我有疑问

2025-03-24 04:47:15
推荐回答(1个)
回答1:

删除目录下所有txt文件中的空行:
for /R %i in (*.txt) do @findstr . "%i">new.txt&move /y new.txt "%i"