Currently I’m using the following function
file.Delete();
But how can I use this function to send a file to the recycle bin instead of just deleting it outright?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
NOTE: This also does not work with non UI Interactive apps like Windows Services
This wrapper can provide you needed functionality: