GetFirstListID

Description

Returns the identifier (ID) for the first sub directory of the directory with the passed ID.

Syntax

FirstListID (ListType : <String>): <Integer>

Parameters

ListType

Defines the type of list from which the information should be queried. The table of the Export Statistics lists all accessible list types.

Return Value

The ID of first item in the given list.

Example

$TopFilesID = $SOS.GetFirstListID("TopFilesList") #PowerShell
TopFilesID = SOS.GetFirstListID "TopFilesList" 'VBS

The variable “TopFilesID” is set to the ID of the first file in the Top 100 files list.