title: Get specific string from a text file using batch command
body: <p>I am looking for a Windows batch script command that can extract specific data string from an automatically generated text file. Note that the first line in the test.txt file is always empty. I need to extract only "<strong>2017/01/01-01</strong>" (from the 2nd line) to a different file. Findstr itself cannot be used as that will always extract whole line, not only the selected string.</p>
  
  <p><strong>Example test.txt file content:</strong></p>
  
  <pre><code>&lt;empty line&gt;
      DateID : 2017/01/01-01     
          texttextext
          texttextext
          ...
  </code></pre>
  
  <p>Thanks in advance.</p>