Description
Provides you the allocated space and number of files for one of the "Age of Files" bar charts.
Syntax
GetFileAgesValue (FolderID : <Integer>, Index : <Shortint>, OccupiedSpace : <OLEVariant>, NumFiles : <OLEVariant>)
Parameters
FolderID |
The ID referring to the directory for which the "Age of Files" values should be retrierved. |
Index |
The index of the "Age of Files" bar to export. |
OccupiedSpace |
(Out Parameter) The space occupied by all files of this "Age of Files" interval. |
NumFiles |
(Out Parameter) The number of files of this "Age of Files" interval. |
Example
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.