Obtaining a Drives Recycle Bin's Path...

K

Kerem Gümrükcü

Hi,

how can i get the pyhsical path to a recycle bin object.
i am working with the FileSystemWatcher Object and i
dont want to handle events inside the recycle bin, because
the FSW Object treats the recycle bin as a folder/file...

Thanks in advance for any hints...


Best Regards

Kerem Gümrükcü
 
W

Wesley Vogel

The Recycle bin is a folder.
C:\RECYCLER\Your SID #

If NTFS...

The Recycler folder is used only on NTFS partitions. The Recycler folder
contains a Recycle Bin for each user that logs on to the computer, sorted by
their security identifier (SID).

Start | Run | Paste:

%systemdrive%\Recycler

Click OK

Detemine which SID # is yours
Open a command prompt
CD C:\RECYCLER\Your SID #
Type: DIR
This will display all the files in your Recycle bin.

Example...

C:\>cd C:\RECYCLER\S-1-5-21-1708537768-1580436667-1202660629-1003

C:\RECYCLER\S-1-5-21-1708537768-1580436667-1202660629-1003>dir
Volume in drive C is Local Disk
Volume Serial Number is 901E-9F82

Directory of C:\RECYCLER\S-1-5-21-1708537768-1580436667-1202660629-1003

03/17/2005 06:16 PM 4,108 Dc1.txt
1 File(s) 4,108 bytes
0 Dir(s) 1,719,345,152 bytes free

I have one file; Dc1.txt which *was* VolumeC.txt

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top