Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Vb script help! To delete folders and files

Status
Not open for further replies.

peppereyes

IS-IT--Management
Jan 19, 2010
1
GB
I need a vb script to delete files and folders when a user logs in on a network.

The location is is c:\users\%username%\mywork
I need to delete all the files and folders in the my work folder which are older than 1 day, the script must use the %username% because it needs to run for all users on a network.

Any help would be great.

Thanks
 
I wrote a script a long time ago that does this for Exchange bad mail queues. You can easily modify that and use it as a login script.
[URL unfurl="true"]http://www.tek-tips.com/viewthread.cfm?qid=1071425[/url]



I hope that helps.

Regards,

Mark

Check out my scripting solutions at
Work SMARTER not HARDER. The Spider's Parlor's Admin Script Pack is a collection of Administrative scripts designed to make IT Administration easier! Save time, get more work done, get the Admin Script Pack.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top