Delete all files in certain folders across multiple users
- From: Rhenestofel <rhenestofel@xxxxxxxxx>
- Date: Wed, 6 Feb 2008 06:02:14 -0800 (PST)
Hey,
I am fairly new at this and trying to create a script that will delete
all files out of a folder in a users account for instance the cookies:
Something like this
------
Const DeleteReadOnly = True
Set objFSO = CreateObject("Scripting.FileSystemObject")
objFSO.DeleteFile ("C:\Documents and Settings\(ALL ACCOUNTS ON THE
SYSTEM)\Cookies\*.*"), DeleteReadOnly
------
only i want it to go through multiple folders in the same manner
here is the list of folders
C:\Documents and Settings\%user name%\Cookies\*.*
C:\Documents and Settings\%user name%\Local Settings\History
\History.IE5\*.*
C:\Documents and Settings\%user name%\Local Settings\Temp\*.*
C:\Documents and Settings\%user name%\Local Settings\Temporary
Internet Files\*.*
C:\Documents and Settings\%user name%\UserData\*.*
Any help would be greatly appriciated.
Rich
.
- Follow-Ups:
- Re: Delete all files in certain folders across multiple users
- From: Pegasus \(MVP\)
- Re: Delete all files in certain folders across multiple users
- Prev by Date: Re: Max limits on Write in Scripting.FileSystemObject
- Next by Date: Re: Issue with WMI performance counters
- Previous by thread: Max limits on Write in Scripting.FileSystemObject
- Next by thread: Re: Delete all files in certain folders across multiple users
- Index(es):
Relevant Pages
|