Clean Temp Directory?

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.
 
C

Cor Ligthert[MVP]

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.
 
A

Andrew Morton

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top