All Forums >> [Scripting] >> Post a VBScript >> Delete Files by extension Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
So I have some content servers that require (when we push some types of code) a full flush of 10's of thousands of files that reside on said servers. I did some research on the net hoping to find that someone else had been though the pain I just did, to no avail. I found some that were similar to what I needed but I had to add more and make some changes. The only ones that I found were extension only, but my need was for a wildcard in the middle of the string and to ID all files that I wanted to delete and to only delete the files that were a said ext. So as you can see from the script I needed ‘data’ & wildcard & “.” & ext.
I figured that I had to do it, I might as well help someone else out with my pain. Please feel free to let me know if there is an easier way to do this, or a better one for that matter.