|
-
Aug 20th, 2011, 12:08 PM
#1
Thread Starter
New Member
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
-
Aug 20th, 2011, 01:23 PM
#2
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.
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|