Results 1 to 7 of 7

Thread: [RESOLVED] Unnecessary file formats

  1. #1

    Thread Starter
    Fanatic Member dom_stapleton's Avatar
    Join Date
    Sep 2005
    Location
    Leigh-on-Sea, UK
    Posts
    665

    Resolved [RESOLVED] Unnecessary file formats

    Hi guys, I'm in the process of making an application that scans all the folders on the computer for unnecessary files that can be deleted. So far it searches for the following extensions:

    *.BAK
    *.CHK
    *.LOG
    *.DMP
    *.OLD
    *.TMP
    Thumbs.db

    Are there any more suggestions?

    Please note that my program doesn't search specific folders, like the Temp folder; it searches the whole computer.
    I use Microsoft Visual Basic 2008 Express Edition.

    If my post has been helpful, please rate it, unless you don't believe in Karma... which actually I don't!

    Resources:
    Visual Basic Tutorials (1, 2) | MSDN Library | Google | Krugle | Search Forums

    Free components:
    Windows Forms Components | XP Common Controls Library

  2. #2
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Unnecessary file formats

    That's not a good idea.. some programs need files with those extensions in order to work.

    Doing that for folders that you know about (like *.tmp files in VB project folders that are more than a week old) is fine, but doing it for every folder (or ignoring dates) is a really bad idea - you could cause some major damage.

    As far as I know, deleting thumbs.db is OK, as it will simply be re-created as needed anyway (such as when you open that folder in Explorer).

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Unnecessary file formats

    Quote Originally Posted by dom_stapleton
    Hi guys, I'm in the process of making an application that scans all the folders on the computer for unnecessary files
    What would you define as "unnecessary"?

  4. #4
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: Unnecessary file formats

    I don't think it's a good idea - log, tmp and whatever can still be used by one of open programs including (but not limited to) windows services, etc...
    I'd prefer system to "take care of that" by simply rebooting it or even cleaning up manually.

    Just like Hack I am also interesting to know what's "unnecessary" mean...

  5. #5

    Thread Starter
    Fanatic Member dom_stapleton's Avatar
    Join Date
    Sep 2005
    Location
    Leigh-on-Sea, UK
    Posts
    665

    Re: Unnecessary file formats

    Ok, you guys make a good point. I'm revising my program to follow the more traditional habit of only cleaning items from known locations, like the IE history folder and the Windows temp folder. I'm also hoping to add a feature that cleans MRU lists from the Registry and also allows users to create their own rules for the program. Any helpful comments or tips are appreciated.
    I use Microsoft Visual Basic 2008 Express Edition.

    If my post has been helpful, please rate it, unless you don't believe in Karma... which actually I don't!

    Resources:
    Visual Basic Tutorials (1, 2) | MSDN Library | Google | Krugle | Search Forums

    Free components:
    Windows Forms Components | XP Common Controls Library

  6. #6
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Unnecessary file formats

    Just to reinforce the points already made, the commercial POS application I create add-ins for creates database backups with a BAK extension by default. My customers would love you if you deleted all their database backups.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  7. #7

    Thread Starter
    Fanatic Member dom_stapleton's Avatar
    Join Date
    Sep 2005
    Location
    Leigh-on-Sea, UK
    Posts
    665

    Re: Unnecessary file formats

    Point duly noted, jmcilhinney. You can be sure that my tail is well and truly between my legs.

    I'm already well into making the new program but once again I've got side-tracked with the appearance of the program. I'm just having a few problems with cleaning certain system folders, like the History folder, for example. But I'll be sure to to post threads pleading for help with these soon...

    I use Microsoft Visual Basic 2008 Express Edition.

    If my post has been helpful, please rate it, unless you don't believe in Karma... which actually I don't!

    Resources:
    Visual Basic Tutorials (1, 2) | MSDN Library | Google | Krugle | Search Forums

    Free components:
    Windows Forms Components | XP Common Controls Library

Posting Permissions

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



Click Here to Expand Forum to Full Width