Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 8 of 8

Thread: How would

  1. #1
    Join Date
    Feb 2008
    Location
    Western Pennsylvania
    Posts
    555

    Grin How would

    Hello all!

    How would I be able to use a button to clean out the "Temp, Temp Internet, and Recent" folders in XP? Click it, and it erases contents automatic??

  2. #2
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,863
    Quote Originally Posted by JDog37 View Post
    Hello all!

    How would I be able to use a button to clean out the "Temp, Temp Internet, and Recent" folders in XP? Click it, and it erases contents automatic??
    by use of File.Delete() and delete the files?
    recent files is stored in the registry.. so you'd need to use Registry.DeleteKey()


    (Click here to contact me)
    Providing Independent Professional Consulting Services for
    IndigoRose products, World Wide.
    Located in -8:00 (-7:00 DST) GMT Timezone (Western United States)

  3. #3
    Join Date
    May 2006
    Posts
    5,380
    i posted a dll on the forums somewhere that can add and remove files from the recent files list, temp folders are in common locations so shell.getfolder will do.
    Open your eyes to Narcissism, Don't let her destroy your life!!

  4. #4
    Join Date
    Oct 2006
    Location
    Betawi
    Posts
    120

  5. #5
    Join Date
    Feb 2008
    Location
    Western Pennsylvania
    Posts
    555

    Smile Thanks

    Thank you guys, all the help is wonderful!

    siray, I got your project and I love it, nice work!

    Joe

  6. #6
    Join Date
    Oct 2006
    Location
    Betawi
    Posts
    120
    but it still cannot delete locked file(s) with that project

  7. #7
    Join Date
    Apr 2007
    Location
    Raalte, OV, Netherlands
    Posts
    3,287
    Well, don't, because there may be Applications that need those files.
    Try to check if the file is in use first, use: File.IsInUse(filename) (returns true if it's in use)
    and by that you can skip those files.

    It's just not wise to delete temp files that are in use,
    it could stall other applications wich may be important.
    Bas Groothedde
    Imagine Programming :: Blog :: Familiar people here

    My AMS Plugins:

  8. #8
    Join Date
    Feb 2008
    Location
    Western Pennsylvania
    Posts
    555

    Wink Awesome!

    Thank all of you. I figured the ones that dont delete are in use.. But I do appreciate all the helpful info!!

    Joe

Posting Permissions

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