Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Delete Files by extension

 
Logged in as: Guest
arrSession:exec spGetSession 2,16,64410
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
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!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Delete Files by extension - 9/19/2008 8:35:30 PM   
  rastalin

 

Posts: 1
Score: 0
Joined: 3/20/2008
Status: offline
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.





      
 
 
Post #: 1
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> Post a VBScript >> Delete Files by extension Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts