A Windows XP help forum. PCbanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » PCbanter forum » Microsoft Windows XP » Performance and Maintainance of XP
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Clean out Documents and Settings of old folders



 
 
Thread Tools Display Modes
  #1  
Old June 10th 09, 05:30 PM posted to microsoft.public.windowsxp.perform_maintain
Rich
external usenet poster
 
Posts: 13
Default Clean out Documents and Settings of old folders

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.





Ads
  #2  
Old June 11th 09, 04:39 AM posted to microsoft.public.windowsxp.perform_maintain
Andrew E.
external usenet poster
 
Posts: 3,409
Default Clean out Documents and Settings of old folders

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.





  #3  
Old June 11th 09, 04:39 AM posted to microsoft.public.windowsxp.perform_maintain
Andrew E.
external usenet poster
 
Posts: 3,409
Default Clean out Documents and Settings of old folders

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.





 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off






All times are GMT +1. The time now is 05:17 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 PCbanter.
The comments are property of their posters.