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

python - How to add an model instance to a django queryset? -

Using Android Volley to post an array to PHP -

angularjs - No 'Access-Control-Allow-Origin' error from local domain to public API -