See this. Does the same code (JohnWein's answer) work in 9x,Me,2K,7 too? If it doesn't please tell me what should i search for to do the same for 9x,Me,2k & 7? Thanks
Asked
Active
Viewed 652 times
2
-
I see this, but I don't get what it has to do with anything. Perhaps you meant for it to be a link? – Adam Robinson Oct 06 '09 at 19:09
-
Sorry! Here's the link: http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/05f1476f-a101-4766-847b-0bdf4f6ad397?prof=required – Oct 06 '09 at 19:11
-
I'm sure I've asked about this before: http://stackoverflow.com/questions/911391/ – Matt Lacey Oct 06 '09 at 19:26
1 Answers
1
How do I restore a file from the recycle bin using C#?
Have a look at this Code Project article. It uses SHFileOperation to perform operations in RecyclBin.
EDIT : To know how to use SHFileOperation in C# Please refer to this CodeProject article .This article continues to explore how to use the shell from C#.