Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[ The Windows Gadget Platform/Sidebar is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions. ]
Gets the number of folders in the Recycle Bin.
This property is read-only.
Syntax
ifolderCount = System.Shell.RecycleBin.folderCount
Property value
An Integer that receives the number of folders.
Remarks
Files are not included in the folderCount total; see fileCount.
Examples
The following example demonstrates how to get the total number of folders in the Recycle Bin.
// --------------------------------------------------------------------
// Empty the Recycle Bin.
// --------------------------------------------------------------------
function EmptyRecycleBin()
{
var intFileCount = System.Shell.RecycleBin.fileCount;
var intFolderCount = System.Shell.RecycleBin.folderCount;
System.Shell.RecycleBin.emptyAll();
spFeedback.innerHTML = intFileCount + " file(s) deleted.<br/>";
spFeedback.innerHTML += intFolderCount + " folder(s) deleted.";
}
Requirements
| Minimum supported client |
Windows Vista [desktop apps only] |
| Minimum supported server |
Windows Server 2008 [desktop apps only] |
| End of client support |
Windows 7 |
| End of server support |
Windows Server 2008 |
| IDL |
|
| DLL |
|