delete a file to recycle bin

  • Thread starter Thread starter Guest
  • Start date Start date
pathetic to see .Net IO does not have a facility for this.

--
Sandeep Thoppil


Alex Meleta said:
Hi,

Use p-Invoke of SHFileOperation in shell32.dll like:

[DllImport("shell32.dll",CharSet = CharSet.Unicode)]
static extern int SHFileOperation([In] ref SHFILEOPSTRUCT lpFileOpStruct);


Read more about it there (Delete File / Recycle Bin): http://www.thescripts.com/forum/thread255921.html

Regards,
Alex
http://devkids.blogspot.com


delete a file to the recycle bin using vb.net 2005
 
Back
Top