C# Recycle bin browsing RRS feed

  • Question

  • I need to interact with the Recycle Bin programmatly in C#.

    I have to retrive all the files contained in the recycle bin and the relative attributes
    like source path, date of deletion and the other information.

    At the end i need also restore a deleted file contained in the recycle bin.

    I searched around on internet but all that I founded is in C++ and I'm not able to convert
    the code in C#.

    These is the relative documentation that i founded...
    There are someone can give me some clues to do what i need in C#?

    "You can't do that directly in C#, so you need to use PInvoke. Please see the
    following documents:

    C# does Shell, Part 1

    C# does Shell, Part 2

    How to programmatically use the Recycle Bin
    http://www.codeproject.com/shell/recyclebin.asp "
    • Moved by Marco Zhou Tuesday, April 21, 2009 9:09 AM Off topic thread
    Saturday, April 18, 2009 7:33 PM