A Alex Meleta Jun 12, 2007 #2 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
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
G Guest Jun 13, 2007 #3 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 Click to expand... Click to expand...
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 Click to expand... Click to expand...