|
-
Aug 25th, 2010, 11:37 PM
#1
Thread Starter
New Member
Moving a file to the recycle bin
I am writing a program to manage some of my files. I already KNOW when I want to send a file to the recycle bin, so I don't need the system to prompt me each time. How do I tell him to BACK OFF, and just DO IT?
Here is my code:
Sub RecycleBinFile(ByVal strFilename As String)
My.Computer.FileSystem.DeleteFile(strFilename, FileIO.UIOption.AllDialogs, FileIO.RecycleOption.SendToRecycleBin, FileIO.UICancelOption.DoNothing)
End Sub
Some of my research has pointed me to FileIO.UIOption.AllDialogs, but I think they're guessing, because I am at a dead end.
Thanks in advance.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|