SpaceObServer.Application.NextSiblingID

<< Zum Inhaltsverzeichnis >>

Navigation:  OLE Automation > Application > Methods >

SpaceObServer.Application.NextSiblingID

Description

Returns the identifier (ID) for the next sibling directory of the directory with the passed ID.
 

Syntax

NextSiblingID (SiblingID : <Integer>): <Integer>
 

Parameters

SiblingID

The identifier for the directory to get the next sibling directory of.

Return Value

The ID for the next sibling directory of the passed directory ID. If the directory with the passed ID has no more sibling directories 0 is returned.

 
Example

PowerShell:

While($FolderID -ne 0){
 $SOS.GetInformation($FolderID, "2", $False, $Text)
 $FolderID = $SOS.NextSiblingID($FolderID)
}

VBS:

Do While FolderID<>0
 SOS.GetInformation FolderID, 2, False, Text
 FolderID = SOS.NextSiblingID(FolderID)
Loop

This while loop iterates through all sibling directories of a directory (identified by the initial value of FolderID) and calls SOS.GetInformation() for these directories.