System.Shell.RecycleBin.fileCount Property
Gets the number of files in the Recycle Bin.
This property is read-only.
Syntax
propVal = System.Shell.RecycleBin.fileCount()
Parameters
- intFileCount [out]
Retrieves the number of files.
Remarks
Folders are not included in the fileCount total; see folderCount.
Examples
The following example demonstrates how to get the total number of files 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
Send comments about this topic to Microsoft
Build date: 2/24/2010
Build type: SDK