views:

45

answers:

2

I'm trying to run a batch file through a folder and delete files if their name contains a certain string. I'm not sure how to check the filename against the string though.

+1  A: 

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.

Sidharth Panwar
+7  A: 

why not just

del *X*

ghostdog74
KISSingly the best
Bart