FileAgesCount

Description

Returns the number of intervals that are configured for the “Distributions” statistics.

Syntax

property FileAgesCount: <Boolean>; (read only)

Example

PowerShell:

$RootDirectoryID = $SOS.RootFolderID
for(($Index = 0);($Index -lt $SOS.FileAgesCount);($Index++))
{
    $SOS.GetFileAgesValue($RootDirectoryID, $Index, $AllocatedSpace, $NumberOfFiles)
    ...
}

VBS:

RootDirectoryID = SOS.RootFolderID
Index = 0
Do While Index < SOS.FileAgesCount
    SOS.GetFileAgesValue RootDirectoryID, Index, AllocatedSpace, NumberOfFiles
    ...
    Index = Index+1
Loop

Loops over all “Age of Files” intervals of the currently activated root directory and queries the allocated space and number of files for each single interval.