Clean Temp Directory?

  • Thread starter Thread starter fabrizio.db
  • Start date Start date
F

fabrizio.db

Hi all, in my windows forms application i save many files in Windows
Temp Folder, i have to clean periodically the folder from my files or
i can let windows to do this job?

Many Thanks.
 
Probably not in a .NET programming discussion group, but you can find an
appropriate Windows group this way.

As you appear to be using a web interface, start here:

http://www.microsoft.com/communities/newsgroups/en-us/default.aspx

In the tree on the left, first open the English category, then open Windows.
In Windows, find and open the category for your version of Windows.
There, you'll find a group to post your question.
 
Hi all, in my windows forms application i save many files in Windows
Temp Folder, i have to clean periodically the folder from my files or
i can let windows to do this job?

Your app should clean up after itself.

The temp folder is exactly that: for temporary files. If your files are not
meant to be temporary then they should be stored somewhere else, for example
in the user's folder in the documents and settings folder.

Sometimes your program may crash and leave files around; if you can
positively identify those old files the next time your app starts, you might
want to ask the user if it is OK to delete them.

Andrew
 
Back
Top