Delete all files in certain folders across multiple users

Tech-Archive recommends: Fix windows errors by optimizing your registry



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
.



Relevant Pages

  • Re: Changing reply to address / name
    ... >login to the other users account and send from there). ... >> options and selecting 'in folders other than the inbox, ... >> save replies with the original message'. ... >> there (to get around that inbox function). ...
    (microsoft.public.outlook)
  • Re: Customizing my start menu
    ... When I moved an icon from one of the "All Programs" ... directories onto the desktop in one users account, ... how can one user customize the "all programs" directories ... > Arrange folders and shortcuts as desired in those two directories to ...
    (microsoft.public.windowsxp.customize)
  • Re: Installing Software
    ... its desktop shortcuts and start menu folders to the all users ... account instead of just the current users account. ... shortcuts or start menu folders from applications that I install ... In other words - if you install ...
    (microsoft.public.windowsxp.customize)
  • Re: Keep same settings for all users
    ... then radio button for "Show hidden files ... and folders", then uncheck the box for "Hide protected operating system ... | Default User - I tried copying it to the All Users account but that didnt ...
    (microsoft.public.win2000.setup)
  • Re: Iritating Message
    ... Start creating a few MAJOR folder categories. ... If you do it with care, you will end up with just 6-8 main folders. ... as opposed to the All Users account. ... Microsoft MVP Windows Shell/User ...
    (microsoft.public.windowsxp.general)