SpaceObServer.Application.Properties.FileAgesCount

<< Click to Display Table of Contents >>

Navigation:  OLE Automation > Application > Properties >

SpaceObServer.Application.Properties.FileAgesCount

Description

Returns the number of intervals that are configured for the "Age of Files" statistics.

 
Syntax

property FileAgesCount: <Boolean>; (read only)

 
Example

PowerShell:

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

VBS:

RootDirecotyID = SOS.RootFolderID
Index = 0
Do While Index<SOS.FileAgesCount                                                                                        
 SOS.GetFileAgesValue RootDirecotyID, 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.