Hidden Temporary Files Left on Hard Drive

Last reviewed: July 30, 1997
Article ID: Q78386
The information in this article applies to:
  • Microsoft Word for Windows, version 2.0

SUMMARY

If you do not exit Microsoft Word for Windows properly, hidden temporary files are written to the current directory (the directory of the open Word for Windows file). An improper exit occurs if your system locks up, the power is lost or turned off while Word is active, or you encounter an unrecoverable application error (UAE). Any of these occurrences leave hidden temporary files on your system. Temporary files have a .DOC extension, and their filename begins with the tilde character (~).

MORE INFORMATION

If you have hidden temporary files on your system, you may notice a loss of disk space. You also cannot delete any directory that contains these hidden files. To display and change the attribute of hidden files from Windows version 3.0 File Manager, choose Include from the View menu, and select the Show Hidden Files check box.

To change file attributes in Windows version 3.1 File Manager, display the hidden files by choosing By File Type from the View menu and selecting the Show Hidden/System Files check box. Select the flagged hidden file. From the File menu, choose Properties, and clear the Hidden check box.

You can also locate these files with the MS-DOS ATTRIB command (type "attrib \~*.* /s" at the MS-DOS prompt). Clear the hidden attribute using the ATTRIB command. Type "ATTRIB -h {filename.ext}" at the MS-DOS prompt.

Note: Temporary files have a file size of 51 bytes. They contain the current user information and a one-directory reference.

Word for Windows stores information about who is currently using a file in its temporary files. This information is useful in a network environment when someone tries to open a file that is already being accessed by another user; Word looks at the temporary file to see who is using the file and returns that information to the second user.

If the temporary owner files are left on the network in error and you delete the file to restore capabilities to edit the associated document, you may not fully recover editing capabilities until the Windows session is restarted.

You can prevent Word for Windows from creating this hidden temporary file by adding the line "NoOwnerFiles=YES" to the [Microsoft Word 2.0] section of the WIN.INI file with the following steps:

  1. From the Tools menu, choose Options.

  2. Under Category, select WIN.INI.

  3. From the Application box, select Microsoft Word 2.0.

  4. In the Option box, type "NoOwnerFiles" (without the quotation marks).

  5. In the Setting box, type "Yes" (without the quotation marks).

  6. Choose the Set button, then choose the Close button.

  7. Exit Word for Windows. Restart the program to activate the change.

The "NoOwnerFiles" setting prevents Word for Windows from attempting to write a temporary owner file when opening a file.

REFERENCES

"Microsoft Word for Windows User's Guide," version 2.0, pages 798-802


KBCategory: kbother
KBSubcategory:
Additional query words: 2.0 crash hang winword winword2


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: July 30, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.