title: Script taking to long
body: <p>Hello i have this script:</p>
  
  <p>batch.bat:</p>
  
  <pre><code>@Echo off
  SETLOCAL ENABLEDELAYEDEXPANSION
  for /f "tokens=*" %%g in (files.txt) do (
  SET File=%%g
  ECHO SET SearchStr=!File! &gt; temp1.bat
  Type temp1.txt &gt;&gt; temp2.bat
  Start temp2.bat
  TIMEOUT /t 1 /nobreak &gt; NUL
  Del temp2.bat
  </code></pre>
  
  <p>)</p>
  
  <p>temp1.bat:</p>
  
  <pre><code>findstr "%SearchStr%" paths.txt &gt;&gt; FilePaths.txt
  exit
  </code></pre>
  
  <p>I have more than 3000 lines in "files.txt" so it takes about 50min which works but would be better if it could go quicker, do you have any ideas that could help?</p>