title: Batch File - Read specific line, and save a specific string in that line as a variable
body: <p>Is there any way to get for /f loop (or anything else) to read a specific line? </p>
  
  <p>Here is the code I have so far, it reads first word of every line.</p>
  
  <pre><code>@echo off
  set file=readtest.txt
  for /f "tokens=1 delims= " %%A in (%file%) do (echo %%A)
  pause
  </code></pre>
  
  <p>If someone can point me in the right direction, it'd be much appreciated.</p>
  
  <p>Thanks</p>
  
  <p>Additional Information: I want to make a batch file which will rename a TXT file to a string within that TXT file, located at a specific location. I have figured out how to rename files, all I need to learn to do is to retrieve a string (located at a specific location) with in the file which will go into the name of that TXT file. </p>