SpaceObServer.Application.AddContainer

<< Zum Inhaltsverzeichnis >>

Navigation:  OLE Automation > Application > Methods >

SpaceObServer.Application.AddContainer

Description

Adds the passed container name as a new container to the connected database.
 

Syntax

AddContainer (Name : <String>, [optional]ExistingRoots <String>)
 

Parameters

Name

The name of a container, which will be added to the database.

[optional]ExistingRoots

(Optional Parameter) Paths of existing roots, separated by commas, which will be added to the new container (Default value is '').

 
Example

$SOS.AddContainer("Container1") #PowerShell

SOS.AddContainer "Container1" 'VBS

The following example demonstrates how to add existing roots to a new container:

$SOS.AddContainer("Container1", "C:\Program Files, D:\, E:\backup") #PowerShell

SOS.AddContainer "Container1", "C:\Program Files, D:\, E:\backup" 'VBS

Adds the scans of "C:\Program Files", "D:\" and "E:\backup" to a container named "Container1". The scans must be present in the database.

 
Remarks

In case a container with the given "Name" already exists, no new container is created. Any optional given "ExistingRoots" are added to the existing container.