Click here to Skip to main content
15,892,674 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:


hi all,

   i have an application in which in have to find and display the name of all files that are in side the recyclebin folder

tell me how to do it using VC++/MFC

This is a repost of a previous question.

Posted
Updated 26-Nov-09 0:53am
v3

1 solution

http://en.wikipedia.org/wiki/Recycle_Bin_%28Windows%29 

The actual location of the Recycle Bin varies depending on the operating system and filesystem. On the older FAT filesystems (typically Windows 98 and prior), it is located in Drive:\RECYCLED. In the NTFS filesystem (Windows 2000, XP, NT) it can be found in Drive:\RECYCLER, with the exception of Windows Vista and Windows 7 which stores it in the Drive:\$Recycle.Bin folder

http://blogs.msdn.com/oldnewthing/archive/2006/01/31/520225.aspx  

 

The FAT and NTFS Recycle Bins have different internal structure because NTFS has this thing called "security" and FAT doesn't. All recycled files on FAT drives are dumped into a single C:\RECYCLED directory, whereas recycled files on NTFS drives are separated based on the user's SID into directories named C:\RECYCLER\S-....

 

I suppose you could list the files from the folders mentioned, but the actual names are stored in a separate file... couldn't find anything on that

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900