开发者

Batch command for if filename contains "X"?

开发者 https://www.devze.com 2023-01-15 07:49 出处:网络
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 ju

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消