Results 1 to 4 of 4
  1. #1
    5 Star Lounger
    Join Date
    Jan 2001
    Location
    Cairns, Queensland, Australia
    Posts
    885
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Empty Recycle Bin on close

    MS KB doesn't have an answer, so this may not be possible but here goes.

    In a site with around 60 users running a mixed desktop OS of Windows 95/98/2000 I want to control the accumulation of "junk" files. All work files are stored on my fileservers. (I know because my users sign a Computer Usage Policy which states that they will do this and understand how to do so. <img src=/S/wink.gif border=0 alt=wink width=15 height=15> <img src=/S/duck.gif border=0 alt=duck width=23 height=23>)

    I wonder firstly if this is reasonably safe, as I have some doubt.

    Can I delete all .TMP files from the PC and empty the Recycle Bin on shutdown?

    I might be able to do the deleting with a batch file, but haven't followed through as that would still leave the files in the Recycle Bin. While I'm ok with that I admit to being lost when it comes to VB, etc.

    Any thoughts, especially constructive, will be gratefully recieved.

    TIA,
    Granville

  2. #2
    Star Lounger
    Join Date
    Nov 2002
    Location
    Port Talbot, Wales
    Posts
    71
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Empty Recycle Bin on close

    I think VB is the answer as it does not place "deleted" items in the recycling bin, it just erases them from the HDD. This means that you would not have to write code to empty the recycling bin, only to delete the files. I have attached the code to do this but it will not delete the files if the file is in use, you will need to write an ErrorHandler to handle this, or re post here if you can't do it and i will try to do it for you.

    Regards
    Jambo

  3. #3
    Plutonium Lounger
    Join Date
    Oct 2001
    Location
    Lexington, Kentucky, USA
    Posts
    12,107
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Empty Recycle Bin on close

    This may help and if so, you're in luck. Karen Kenworthy has what I think is a new program called Recycler that just might help you.

  4. #4
    Silver Lounger
    Join Date
    Jan 2001
    Location
    Long Beach, California, USA
    Posts
    1,912
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Empty Recycle Bin on close

    I delete all kinds of things on rebooting by ruuning batch files. I don't see why you could not empty the Recycle Bin the same way. Additionally, running batch files in DOS mode would not move things into the Recycle Bin in the first place.

Posting Permissions

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