SpaceObServer.Application.Properties.SizeDistributionCount

<< Zum Inhaltsverzeichnis >>

Navigation:  OLE Automation > Application > Properties >

SpaceObServer.Application.Properties.SizeDistributionCount

Description

Returns the number of intervals that are configured for the "Size Distribution" statistics.

 
Syntax

property SizeDistributionCount: <Boolean>; (read only)

 
Example

PowerShell:

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

VBS:

RootDirecotyID = SOS.RootFolderID
Index = 0
Do While Index<SOS.SizeDistributionCount                                                                                        
 SOS.GetSizeDistributionValue RootDirecotyID, Index, AllocatedSpace, NumberOfFiles
 ...
 Index = Index+1        
Loop

Loops over all "Size Distribution" intervals of the currently activated root directory and queries the allocated space and number of files for each single interval.