在文本文件中添加新行而不改变格式
这是我的脚本: @ECHO OFF SET origfile="C:\Documents and Settings\user\Desktop\test1\before.txt" SET tempfile="C:\Documents and Settings\user\Desktop\test1\after.txt" SET insertbefore=4 FOR /F %%C IN ('FIND /C /V "" ^<%origfile%') DO SET totallines=%%C <%origfile% (FOR /L %%i ...