@echo off > newfile.TXT & setLocal enableDELAYedexpansion
set N=
for /f "tokens=* delims= " %%a in (C:\TEST.TXT) do (
set /a N+=1
)
set /a X=!N!-4
set N=
for /f "tokens=* delims= " %%a in (C:\TEST.TXT) do (
set /a N+=1
if !N! gtr !X! echo %%a >> newfile.TXT
)
No comments:
Post a Comment