Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想使用批处理文件删除文本文件中的换行符。有没有可能做。请提供一些帮助
如果您的意思是从文本文件中删除空行,请在批处理文件中尝试:
for /f "delims= tokens=*" %%x in (inputfile.txt) do echo %%x >> outputfile.txt
您可能还希望将inputfile.txt和outputfile.txt替换为%1和%2以用于将其名称指定给批处理文件的任何文件