microcephalic Posted November 13, 2004 Posted November 13, 2004 How can I send a file to the recycle bin in VB .net? Quote
Arch4ngel Posted November 14, 2004 Posted November 14, 2004 There's an hidden folder in your C:\ . It's supposed to be called RECYCLER. Inside it you might find one or more recycle bin. If you move a file to one of those... well.... your file is in the recycle bin now ! :) Have a good day Quote "If someone say : "Die mortal !"... don't stay to see if he isn't." - Unknown "Learning to program is like going out with a new girl friend. There's always something that wasn't mentioned in the documentation..." - Me "A drunk girl is like an animal... it scream at everything like a cat and roll in the grass like a dog." - Me after seeing my girlfriend drunk and some of her drunk friend. C# TO VB TRANSLATOR
Administrators PlausiblyDamp Posted November 14, 2004 Administrators Posted November 14, 2004 You would need to call the ShFileOperation api via interop to do this correctly. http://www.pinvoke.net has a declare for the function and the required structure as well as a little sample http://www.pinvoke.net/default.aspx/shell32.SHFileOperation Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
microcephalic Posted November 15, 2004 Author Posted November 15, 2004 Thanks! I will check out the link and let you know how it works out for me Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.