Listing 1: WList.bat :: Change your working directory as no script components can exist in the UceArchive directory cd UceArchive :: Beginning of the infinite loop :Start :: For loop with delims reads whitelist from the file Wlist.txt, then moves said email :: to the pickup directory if a match is found. FOR /F "delims=" %%F IN ('FINDSTR /M /G:"D:\Program Files\Exchsrvr\Mailroot\vsi 1\Wlist.txt" *.eml') DO MOVE "%%F" "D:\Program Files\Exchsrvr\Mailroot\vsi 1\PickUp" :: Any lingering email is probably spam so move it to another folder so that it isn't :: scanned again. Move "D:\Program Files\Exchsrvr\Mailroot\vsi 1\UceArchive\*.eml" "D:\Program Files\Exchsrvr\Mailroot\vsi 1\BList" :: Sleep for 15 seconds "D:\Program Files\Exchsrvr\Mailroot\vsi 1\"Sleep.exe 15 :: Return to beginning to run again Goto :Start