Share via


System.Shell.RecycleBin.folderCount Property

Gets the number of folders in the Recycle Bin.

This property is read-only.

Syntax

propVal = System.Shell.RecycleBin.folderCount()

  

Parameters

  • intFolderCount [out]
    Retrieves 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
Minimum supported server Windows Server 2008
IDL Sidebar.idl
DLL Sidebar.Exe version 1.00 or later

See Also

System.Shell.RecycleBin

 

 

Send comments about this topic to Microsoft

Build date: 2/24/2010

Build type: SDK