I'm trying to run a batch file through a folder and delete files if their name contains a certain stri开发者_如何学编程ng. I'm not sure how to check the filename against the string though.
why not just
del *X*
This is what you need: http://www.robvanderwoude.com/findstr.php
This is an awesome website for scripts. Loads of other stuff that might be useful if you're into scripting.
精彩评论