My customer sometimes receives "spam" messages on their BizTalk file drop locations i.e files not of the type expected by the receive location filter eg a .doc instead of a .xls. The file adaptor does not have an option to delete such "junk" - probably for good reason- , and we can not stop the sender of these files from occasionally sending them.
My solution would be to use a scheduled task to periodically run a powershell script which moves all the files which do not match the receive location filter to a folder, where a user can check the files, and delete any "spam" thus preventing the folders from eventually filling up.
Is there a better way to achieve this ?