how to read line 17 only from text file using batch -
how to read line 17 only from text file using batch -
i have write batch script have read contents line 17 , save variable.i used skip eliminate first 16 lines clueless of how eliminate lastly 5 rows ie line 18 line 22. please find piece of code below:
for /f "skip=16" %%g in (abcd.txt) set "variable=%%g"
could please suggest me how read contents line 17
you can add together goto
leave for-loop.
for /f "skip=16" %%g in (abcd.txt) ( set "variable=%%g" goto :leaveloop ) :leaveloop
batch-file
Comments
Post a Comment