+ Post New Thread
Results 1 to 8 of 8
Windows Thread, How can I automatically delete contents of Recycler folder? in Technical; I have noticed (using Treesize) that some of our users have some large files within their 'My documents' folder. On ...
  1. #1

    Join Date
    Feb 2009
    Location
    Poole, Dorset, UK
    Posts
    7
    Thank Post
    1
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    How can I automatically delete contents of Recycler folder?

    I have noticed (using Treesize) that some of our users have some large files within their 'My documents' folder. On investigation, many of these are in the Recycler folder. These deleted files are taking up huge amounts of space, some are in excess of 70Mb. Is there a way of deleting these files without going into every users documents and deleting it? I can't let the user do this as they won't be able to see the folder anyway as it is a system folder. Most of what the users can see and do are controlled by system policies.

    The PCs are running XP Pro and the server is running Windows Server 2003.

    Can anyone help?

    Thanks

  2. #2

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    16,052
    Thank Post
    888
    Thanked 1,728 Times in 1,491 Posts
    Blog Entries
    12
    Rep Power
    453
    We use this in a batch file to clear staff desktops. We have it running as a logoff script. If you adapt this it can do your job

    Code:
    del "C:\Documents and Settings\%username%\Desktop\*.*" /Q /S /F

  3. #3

    Join Date
    Feb 2009
    Location
    Poole, Dorset, UK
    Posts
    7
    Thank Post
    1
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Hi
    Thanks.
    We have a batch file running at the moment which clears tmp files from the user profiles, it goes like this:
    del /F /Q /S "\\RDC2259\Profiles$\%username%\Microsoft\Publishe r\*.*"
    del /F /Q /S "\\RDC2259\Profiles$\%username%\Local Settings\Temp\*.*"
    del /F /Q /S "\\RDC2259\Profiles$\%username%\Cookies\*.*"
    del /F /Q /S "\\RDC2259\Profiles$\%username%\Macromedia\*.* "
    del /F /Q /S "\\RDC2259\Profiles$\%username%\Microsoft\Word\~WR L*"
    del /F /Q /S "\\RDC2259\Profiles$\%username%\Microsoft\Word\*.w bk"
    del /F /Q /S "\\RDC2259\Profiles$\%username%\Microsoft\Office\* .TMP"
    del /F /Q /S "\\RDC2259\Profiles$\%username%\Microsoft\Office\R ecent\*.*"
    del /F /Q /S "\\RDC2259\Profiles$\%username%\*.tmp"
    del /F /Q /S "C:\Documents and Settings\%username%\Application Data\Microsoft\Word\*.*"
    del /F /Q /S "C:\Documents and Settings\%username%\Microsoft\Publisher\*.*"
    del /F /Q /S "C:\Documents and Settings\%username%\Local Settings\Temp\*.*"
    del /F /Q /S "C:\Documents and Settings\%username%\Cookies\*.*"
    del /F /Q /S "C:\Documents and Settings\%username%\Macromedia\*.*"
    del /F /Q /S "C:\Documents and Settings\%username%\Microsoft\Word\~WRL*"
    del /F /Q /S "C:\Documents and Settings\%username%\Microsoft\Word\*.wbk"
    del /F /Q /S "C:\Documents and Settings\%username%\*.tmp"

    But this does not look at their 'My documents' folder. Will your batch file do this? My IT expert (who visits once a month) did this one.

  4. #4

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    16,052
    Thank Post
    888
    Thanked 1,728 Times in 1,491 Posts
    Blog Entries
    12
    Rep Power
    453
    How do you run this script?

    There is no reason why mine cant. I assume you have home areas stored on the server?

  5. #5

    Join Date
    Feb 2009
    Location
    Poole, Dorset, UK
    Posts
    7
    Thank Post
    1
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    It is done thro' Group Policies Manager and runs at log on and log off. Yes there are home areas on the server.

  6. #6

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    16,052
    Thank Post
    888
    Thanked 1,728 Times in 1,491 Posts
    Blog Entries
    12
    Rep Power
    453
    Yep it should be fine then, just change the path to point to the correct folder located in the home area. You can adapt your own to do it by putting a few extra lines in.

  7. Thanks to FN-GM from:

    Jokerman64 (12th November 2010)

  8. #7

    Join Date
    Feb 2009
    Location
    Poole, Dorset, UK
    Posts
    7
    Thank Post
    1
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    OK
    Thanks very much for your help.

  9. #8

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    16,052
    Thank Post
    888
    Thanked 1,728 Times in 1,491 Posts
    Blog Entries
    12
    Rep Power
    453
    Your welcome

SHARE:
+ Post New Thread

Similar Threads

  1. Exchange 2007. Delete contents of multiple mailboxes
    By PeteM in forum Windows Server 2008
    Replies: 2
    Last Post: 26th May 2010, 11:56 AM
  2. Replies: 6
    Last Post: 4th March 2010, 08:18 PM
  3. Replies: 4
    Last Post: 20th March 2009, 10:15 AM
  4. Automatically Delete exe
    By lsheldon in forum Windows
    Replies: 26
    Last Post: 27th February 2009, 11:16 AM
  5. Replies: 1
    Last Post: 21st January 2007, 02:51 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •