如何批量删除文本文档第一行

如题所述

@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

说明:把批处理文件和要修改的.txt文档文件放在一起,运行。修改好的文件存放在NewFile目录中。
温馨提示:答案为网友推荐,仅供参考
相似回答