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

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -