How the Recycle Bin Stores Files

Last reviewed: November 11, 1997
Article ID: Q136517
The information in this article applies to:
  • Microsoft Windows 95
  • Microsoft Windows NT Server version 4.0
  • Microsoft Windows NT Workstation version 4.0

SUMMARY

When you delete a file in Windows Explorer or My Computer, the file appears in the Recycle Bin. The file remains in the Recycle Bin until you empty the Recycle Bin or restore the file.

Older files are also removed from the Recycle Bin when newer files are deleted and the Recycle Bin exceeds the maximum size allocated in Recycle Bin properties.

MORE INFORMATION

Each hard disk contains a hidden folder named Recycled. This folder contains files deleted in Windows Explorer or My Computer, or in Windows 95-based programs.

When you delete a file, the complete path and file name is stored in a hidden file called INFO in the Recycled folder. The deleted file is renamed, using the following syntax:

   D<original drive letter of file><#>.<original extension>

Examples:

New file name:

   Dc1.txt = (C drive, second file deleted, a .txt file)

INFO file path:

   C:\Windows\Desktop\Books.txt

New file name:

   De7.doc = (E drive, eighth file deleted, a .doc file)

INFO file path:

   E:\Winword\Letter to Rosemary.doc

Each drive has a Recycled folder. Files deleted from compliant programs are moved to the Recycled folder on the drive from which they are deleted. Double-clicking the Recycle Bin icon displays the folder listing of deleted files available for restoration.

Clicking a file and choosing Restore causes the original path to be read from the INFO file, and the file to be renamed and restored to its original path.

Damaged or Deleted INFO File

If the INFO file is damaged or deleted, no files appear in the Recycle Bin. However, the renamed files still exist in the Recycled folder. Even though the files in the Recycled folder have been renamed, they are not changed in any other way. For example, a text file is still viewable as a text file. To restore such a file, you can manually search for the file in the folder and rename it.

If the INFO file is deleted, it is re-created when you restart Windows 95. If the Recycle Bin becomes damaged and stops functioning, deleting the hidden INFO file in the Recycle folder and restarting Windows 95 may enable you to again access files in the Recycle Bin. The INFO file is a hidden file. To delete the INFO file follow these steps:

   1. Open a command prompt window
   2. Type CD recycled
   3. Type attrib –h inf*
   4. Type Del info


Damaged Files in Recycled Folder

No files may appear in the Recycle Bin if the files in the Recycled folder are damaged. If this is the case, create a copy of the Recycled\ Desktop.ini file in another folder, and then delete the entire contents of the Recycled folder. Then, restore the Desktop.ini file to the Recycled folder. Note that doing this deletes all files in the Recycle Bin.


Additional query words: 4.00 95 corrupted prodnt
Keywords : ntui prodnt svrwksta win95 winnt kbui
Version : WinNT:4.0;Windows:95
Platform : WINDOWS


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: November 11, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.