2 replies
by shanghai sam
It won't hurt anything. Many programs build temp files as a holding place for things like new documents or documents you are working on. there a lot of different uses for temp files. In theory they are supposed to be removed by the software that created them but they seldom are. Our solution to this problem is to include the following lines in the autoexec.bat file.
c:
cddeltree /y c:\temp
deltree /y c:\windows\temp
md c:\temp
md c:\windows\temp
This completely removes the directories and rebuilds them every time the machine is started.
If you have any questions please email me at fgarber@hansinpipe.com
by nettek
The Temp directory is the location where most programs store their temporary files when in use. Explaining exactly what temp files are and how they work would take up more space than is given here. The simplest explanation is that many times when a program executes, it makes copies of certain files and places them in the Temp directory. Any changes the program makes (or you make) to the files are made to these temporary copies, and not the original. This is a safeguard so that in the event of corruption, or if you elect not to save the changes, the original files are still intact. It is not automatic that Windows or other programs will delete the contents of the temp directory, so you shoud do so on a regular basis.
However, be careful when deleting the contents of the c:\windows\temp directory. Some of the files you find in the directory may actually be in use by Windows or another program. If you delete them, you may cause more harm then good.
To safely delete them, first Ctrl+ Alt + Del and End Task on all programs except "Explorer" and "Systray". This way you have made sure that there are no active temp files in the Temp directory. You may then safely delete the contents of the Temp directory.
This discussion is closed to new replies.
Trending Windows Forum posts
Sort by Trending