How do I empty the recycle bin from my program? I know the class ID of the recycle bin cleaner (I got it from the registry). So even if someone can tell me how to use it to do the job, It'll be great!
Thanks
Printable View
How do I empty the recycle bin from my program? I know the class ID of the recycle bin cleaner (I got it from the registry). So even if someone can tell me how to use it to do the job, It'll be great!
Thanks
::SHEmptyRecycleBin( )
LA Leonard - Definitive Solutions, Inc.
Hi Leonard. Thanks for replying. I just checked out MSDN's help on the topic at about the same time as I read your message, and it said I needed win98 or 95 with IE 4.0. Even though I have IE 4.0 on my system, I have VC++ 5.0, and so I can't compile this line. I need the version of shellapi.h and shell32.lib that came with VC++ 6.0. How big are these files? can you tell me where I can download them, or can you mail them to me if they're not too big?
ShEmptyRecycleBin() isn't available in VC++ 4.X - is there another way to do this using the PIDL returned from ShGetSpecialFolderLocation()?