Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Get # of items in recycle bin

Get # of items in recycle bin

Scheduled Pinned Locked Moved Visual Basic
csharpcomtutorialquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jacobjordan
    wrote on last edited by
    #1

    Anyone here know how to get the number of items currently in the user's Recycle Bin? Oh, and just to let you know, i'm using .NET 3.0, so it will have to work in that. Edit: almost forgot. If you know how, i would also like something that can return the path to the user's recycle bin, or a function that will empty it. Thanks.

    Giveaway of the day .com ------------------------------------------------------------------ Dream.In.Code | Programmer's Heaven | CodeGuru "Failure is only the opportunity to begin again, this time more wisely."

    modified on Saturday, September 13, 2008 8:06 PM

    L 1 Reply Last reply
    0
    • J jacobjordan

      Anyone here know how to get the number of items currently in the user's Recycle Bin? Oh, and just to let you know, i'm using .NET 3.0, so it will have to work in that. Edit: almost forgot. If you know how, i would also like something that can return the path to the user's recycle bin, or a function that will empty it. Thanks.

      Giveaway of the day .com ------------------------------------------------------------------ Dream.In.Code | Programmer's Heaven | CodeGuru "Failure is only the opportunity to begin again, this time more wisely."

      modified on Saturday, September 13, 2008 8:06 PM

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      I don't think there are any .Net ways of doing it. You'll have to use SHEmptyRecycleBin[^] to empty it, SHQueryRecycleBin[^] to get the size and number of files in the Recycle Bin, and SHGetSpecialFolderLocation[^] to get the path to the Recycle Bin.

      J 1 Reply Last reply
      0
      • L Lost User

        I don't think there are any .Net ways of doing it. You'll have to use SHEmptyRecycleBin[^] to empty it, SHQueryRecycleBin[^] to get the size and number of files in the Recycle Bin, and SHGetSpecialFolderLocation[^] to get the path to the Recycle Bin.

        J Offline
        J Offline
        jacobjordan
        wrote on last edited by
        #3

        lol, Didn't mean it had to be .NET, just had to work in it. Thanks.

        Giveaway of the day .com ------------------------------------------------------------------ Dream.In.Code | Programmer's Heaven | CodeGuru "Failure is only the opportunity to begin again, this time more wisely."

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups