如何修改成批量删除txt文档中的最后一行文字的批处理 **.bat

如何修改成批量删除txt文档中的最后一行文字的批处理 **.bat ,这是批量删除txt文档中的第一行文字的批处理方法 @echo off echo 正在运行中,请耐心等待... if not exist NewFile md NewFile for /f "delims=" %%i in ('dir *.txt /b') do ( type "%%i"|more +1>"NewFile\%%i" ) echo 完成!&pause ,谢了

第1个回答  2017-08-20
@echoOffsetlocalEnabledelayedexpansionsetfile=1.txt>>new.txt(for/f"delims="%%ain(!file!)do(set/astep+=1echo%%a2345^))start"""new.txt"&exit
相似回答