Yes. It's possible to do. You should use regular expressions for that.
Read the page:http://www.abacre.com/afr/manual/optsbatch.htm
See description and examples in "Include File Name into Search Scope" topic of the mentioned page above.