CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    May 1999
    Posts
    69

    How to empty the recycle bin

    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


  2. #2

    Re: How to empty the recycle bin

    ::SHEmptyRecycleBin( )

    LA Leonard - Definitive Solutions, Inc.

  3. #3
    Join Date
    May 1999
    Posts
    69

    Re: How to empty the recycle bin

    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?



  4. #4
    Join Date
    May 1999
    Location
    Farnborough, Hants, England
    Posts
    710

    Re: How to empty the recycle bin

    ShEmptyRecycleBin() isn't available in VC++ 4.X - is there another way to do this using the PIDL returned from ShGetSpecialFolderLocation()?

    --
    Jason Teagle
    [email protected]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured