title: Perform a FIND in DOS FOR loop
body: <p>I want to perform a FIND command for all the file extension *.LOG in a directory. How can I achieve it? The below is what I have so far, but it is not working and I do not know where's the problem.</p>
  
  <pre><code>for /R C:\folder\log %%i IN (*.LOG) DO (
  TYPE %%i | find /I /N "ORA-" &gt;&gt; C:\folder\log\Errorfound.log
  ECHO %%i
  exit
  )
  </code></pre>