I'm a newbie to the coding world, can someone help me with below scenario?

I need a batch script for windows that does the following:

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);

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.

> 
> H0001200008143800120918155209  
> 
>  D43442371013477773520000001280012091800001
>  D4344237101172222**511**0000000900012091800001
>  D4344237100769292**504**0000007200012091800001
> 
> 
> 

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 

```
@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" >nul || move "%%F" D:\ARAT\ARAT_Verified

```