By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,584 Members | 1,767 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,584 IT Pros & Developers. It's quick & easy.

Need a script to prune folders by date

P: 1
I've got a folder area on our file server (Win 2003) where our copiers deposit scans so users can pick them up. The structure is ..\Scanned Files\Username\ where the username is that user's name. Unfortunately not everyone cleans up after themselves, so I need a script that can prune out all the files older than 30 days but leave the folders. I plan to set this up as a scheduled task to be run each morning after backups run.

I know nothing about scripting, so I'd appreciate any help you can provide on coming up with a script to accomplish this. If you need any further information, please let me know.
Mar 31 '08 #1
Share this Question
Share on Google+
1 Reply


Dököll
Expert 100+
P: 2,364
I've got a folder area on our file server (Win 2003) where our copiers deposit scans so users can pick them up. The structure is ..\Scanned Files\Username\ where the username is that user's name. Unfortunately not everyone cleans up after themselves, so I need a script that can prune out all the files older than 30 days but leave the folders. I plan to set this up as a scheduled task to be run each morning after backups run.

I know nothing about scripting, so I'd appreciate any help you can provide on coming up with a script to accomplish this. If you need any further information, please let me know.
Hey, Phydeux!

You are asking for help and I am sending you to do more reading, sorry about that...

I took a good look at the results of my search and thought you may do better looking through on your own: http://www.google.com/search?q=VB+sc...e7&rlz=1I7SUNA

Please come back if links there do not work, and do stay tuned for added support.

Good luck with project:-)

Dököll
Apr 1 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.