PC Review


Reply
Thread Tools Rate Thread

Clean out Documents and Settings of old folders

 
 
Rich
Guest
Posts: n/a
 
      10th Jun 2009
Below is what I'm trying to accomplish. Does anyone have a good idea or a
script to do something like this? I tried writing a vbscript and it didn't
work out so well.

-iterate all the folders in the Documents and Settings area
-for each folder check its name against an exclusion list (such as
Administrator, Default User, All Users, etc...)
-if it is not an exclusion folder, get the date of the ntuser.dat file
inside the folder
-check that against the current date
-if it is older than 60 days, delete the folder.





 
Reply With Quote
 
 
 
 
Andrew E.
Guest
Posts: n/a
 
      11th Jun 2009
For scripts,go to: http://www.microsoft.com/technet
At TechNet,locate the script center,library,a script like you wish to run may
already be available.Also,download "scriptomatic",the utility is for writing
scripts...

"Rich" wrote:

> Below is what I'm trying to accomplish. Does anyone have a good idea or a
> script to do something like this? I tried writing a vbscript and it didn't
> work out so well.
>
> -iterate all the folders in the Documents and Settings area
> -for each folder check its name against an exclusion list (such as
> Administrator, Default User, All Users, etc...)
> -if it is not an exclusion folder, get the date of the ntuser.dat file
> inside the folder
> -check that against the current date
> -if it is older than 60 days, delete the folder.
>
>
>
>
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
User Account Clean up in Documents and Settings longshotken Windows XP Help 3 27th Jun 2008 05:01 AM
Doing a clean install, will the documents folders be removed GEO Windows Vista General Discussion 3 23rd Sep 2007 12:08 PM
How do I clean up the Documents and Settings folder? =?Utf-8?B?T2xkYnJhaW4=?= Windows XP Basics 4 20th May 2007 01:51 PM
How can I clean up the many duplicate folders in My Documents? Mel Windows XP Help 0 24th Sep 2006 08:45 PM
How can I clean up the many duplicate folders in My Documents? Mel Windows XP Help 0 24th Sep 2006 08:30 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:32 AM.