bat批处理怎么读取一个txt文件的最后一行内容?

@echo off
setlocal enabledelayedexpansion
for /f "delims=" %%i in (yourfile.txt) do (
@set /a b+=1
@echo %%i > lastline.txt
)
@pause

 

评论关闭