UpdateAnnotation

<< Click to Display Table of Contents >>

Navigation:  OLE Automation > Application > Methods >

UpdateAnnotation

Description

Sets or updates the annotation of the file or folder with the passed ID.
 

Syntax

UpdateAnnotation(ItemID: <Integer>, NewAnnotation <String>);
 

Parameters

ItemID

The ID referring to the file or folder, for which the annotation should be updated.

NewAnnotation

The annotation which should be associated with the file or folder.

 
Example

$SOS.UpdateAnnotation($FolderID, "My first Annotation") #PowerShell

SOS.UpdateAnnotation FolderID, "My first Annotation" 'VBS

Adds "My Annotation" as additional information to the item with ID "FolderID".