Nov 13, 2004 #1 M microcephalic Member Joined Nov 6, 2004 Messages 16 How can I send a file to the recycle bin in VB .net?
Nov 14, 2004 #2 Arch4ngel Well-known member Joined Mar 22, 2004 Messages 940 Location Montreal, QC Theres an hidden folder in your C:\ . Its 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
Theres an hidden folder in your C:\ . Its 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
Nov 14, 2004 #3 PlausiblyDamp Administrator Joined Sep 4, 2002 Messages 6,155 Location Lancashire, UK User Rank *Expert* You would need to call the ShFileOperation api via interop to do this correctly. 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
You would need to call the ShFileOperation api via interop to do this correctly. 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
Nov 14, 2004 #4 M microcephalic Member Joined Nov 6, 2004 Messages 16 Thanks! I will check out the link and let you know how it works out for me