0

I see the file in my trash bin has the path as:

C:\Recycle bin\{3x-for-example-guid-4x}\file.txt   

I would like to know how to get the real path, the one before it is transfered to the trashbin.

Mat
  • 202,337
  • 40
  • 393
  • 406
Sesama Sesame
  • 279
  • 3
  • 6
  • 19
  • 3
    @Sesame: don't put salutations or thank yous in your questions. See [here](http://meta.stackexchange.com/questions/2950/should-hi-thanks-taglines-and-salutations-be-removed-from-posts). – Mat Sep 04 '11 at 13:41
  • You might want to alter your question title. In it you make the assumption that the GUID has anything to do with the original path of the deleted file. – Christian.K Sep 04 '11 at 13:42
  • Okay, I will say thanks face to face. – Sesama Sesame Sep 04 '11 at 13:48

2 Answers2

4

Raymond Chen has recently blogged about this here. The article uses COM and C++ to query information about an object in the recycle bin, including the original path - which I assume is what you mean by "real path".

Christian.K
  • 47,778
  • 10
  • 99
  • 143
1

See the answer in this post for how to read out the path. Also see How to restore files from recycle bin

The original link refers to a C++ article: How to programmatically use the Recycle Bin

Community
  • 1
  • 1
Claus Jørgensen
  • 25,882
  • 9
  • 87
  • 150