Results 1 to 2 of 2

Thread: Windows Temp Files

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2011
    Posts
    2

    Post Windows Temp Files

    I Was Wondering If Somebody Could Tell Me How To Make It So When You Press A Button, It Deletes Windows Temp Files.
    Thanks,
    VBScripter123

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

    Re: Windows Temp Files

    There's nothing special about a temp file. It's just a file, but in the Temp folder. It's convention that anything added to the Temp folder should only be required as long as the application is open. Any files that need to be retained for future sessions should be stored elsewhere, although that "rule" is not always followed.

    You delete a temp file the same way you delete any other file, because they are just like any other file. The System.IO.Path class can give you the path of the Temp folder and then you can delete any file from that folder just like any other file.
    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

Tags for this Thread

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