Get # of items in recycle bin
-
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
-
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
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.
-
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.
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."