Windows Temporary Files
- Definition of Windows Temporary Files
- What to Do with Temporary Files
Definition of Windows Temporary FilesA Windows temporary file is created under the following threecircumstances:
- Windows Desktop applications, such as Write, and multiple document interface (MDI) applications, such as Excel, create temporary files to handle necessary user editing.
Because a Desktop application cannot have multiple documents open at once, it must immediately create a temporary file that allows you to undo any editing. MDI applications create temporary files only when necessary (for related editing), rather than for every worksheet that is open.
- When you run an MS-DOS-based standard application with Windows/286, Windows/286 creates a temporary file (for example, ~PIFCHFA.TMP) so that it can swap to disk to make room for other applications to use memory.
- When you print from Windows or any Windows-based application with the spooler enabled, Windows creates temporary files on the hard disk. Windows spools the print job to the temporary file and then sends it to the appropriate printer as a background operation.
What to Do with Temporary FilesA number of files may appear on the hard drive in various directoriesbeginning with a tilde character (~) and ending with a .TMP extension.These may be temporary files created by Windows that remain on the harddrive due to an irregular exit from a Windows session.
Under normal conditions, these files are closed and deleted by Windows whenyou quit a Windows session. However, if you quit Windows in an irregularway (for example, restarting the computer or turning it off during anactive Windows session) the files are not closed or deleted.
The temporary files should be located in a designated subdirectory of theirown. If temporary files appear in the root directory, you may have aninvalid SET TEMP statement. Check for the following conditions:
- Using a text editor, such as Microsoft Windows Notepad, open the AUTOEXEC.BAT file and make sure it includes a valid SET TEMP statement. This statement should be similar to the following:
- Note the path that the SET TEMP statement points to and check to ensure that such a subdirectory does exist. If not, create a subdirectory to match the SET TEMP statement.
- If the SET TEMP statement is pointing to a RAM drive, make sure the RAM drive is large enough to hold the temporary files being created.
To delete a temporary file, use the following steps:
- Close Windows.
- From the MS-DOS command prompt, change to the TEMP directory.
- Delete any existing .TMP files. Make sure Windows is not running at the time these files are deleted. Some of these .TMP files may be files that Windows is using.
ID d'article : 92635 - Dernière mise à jour : 09/24/2011 00:58:00 - Révision : 3.0