title: How to check if text file contain certain text in batch?
body: <p>I have text file in same folder as where my batch file is.<br></p>
  
  <p>so I want my batch file to read content of the text file and depending on content of that text file I want it to perform action. </p>
  
  <p>example if text file contains "Hello World" then do like Start VLC 
  if it doesn't contain Hello World then do something else.</p>
  
  <p>Text will update on it's own.</p>
  
  <p>here is my batch code so far, it can output the text from text file on screen.</p>
  
  <pre><code>@echo off
  for /f "tokens=*" %%a in (log.txt) do call :processline %%a
  
  pause
  goto :eof
  
  :processline
  echo line=%*
  
  goto :eof
  
  :eof
  </code></pre>