title: find specified numbers in text file
body: <p>I'm a newbie to the coding world, can someone help me with below scenario?</p>
  
  <p>I need a batch script for windows that does the following:</p>
  
  <p>Scan *.txt file in the “ARAT_Preverification” folder to find if there are any “Error codes” like 503, 504, 511 and 611 (scenario mentioned below);</p>
  
  <p>Below is the sample .txt file where every 1st row has no data and can be ignored; the following rows has data where the batch should scan and find the error codes (if any) between 18-20 characters only, each row has 90 characters including spaces.</p>
  
  <blockquote>
    <p>H0001200008143800120918155209<br>
    D43442371013477773520000001280012091800001
    D4344237101172222<strong>511</strong>0000000900012091800001
    D4344237100769292<strong>504</strong>0000007200012091800001</p>
  </blockquote>
  
  <p>If any *.txt file has the above-mentioned error codes then that file should not be moved to “Verified” Folder if no error codes are found then the .txt file should be moved to "Verified" folder. I got the script below but it doesn't detect the error codes in the file and  </p>
  
  <pre><code>@echo off
  set local
  set "beg=^D................"
  for %%F in (D:\ARAT\ARAT_Preverification\*.txt) do findstr /r "%beg%503 %beg%504 %beg%511 %beg%611" "%%F" &gt;nul || move "%%F" D:\ARAT\ARAT_Verified
  </code></pre>