title: FINDSTR using variable from text file (Batch,Scripting)
body: <p>I have a statement, which removes a specific string out of a text file, although how can I define this string from a text file.</p>
  
  <p>E.g. the text file has one line of text and I efectively want that text to go inbetween <code>"/c:"&lt;HERE&gt;" &gt;&gt;"</code></p>
  
  <p>The statement is below</p>
  
  <pre><code>type ignore_tmp.lst | findstr /v /c:"%ignore%p" &gt;&gt; ignore_tmp_.lst
  </code></pre>
  
  <p>So I think the real question is, if I echoed the text file, maybe using the type command, how could I set the output as a variable?</p>