SpaceObServer.Application.Properties.RootDirectory

<< Click to Display Table of Contents >>

Navigation:  OLE Automation > Application > Properties >

SpaceObServer.Application.Properties.RootDirectory

Description

Use this property to load a scanned directory, exchange scan, SSH scan or container root to the directory tree and make it the active root directory.

 
Syntax

property RootDirectory: <String>;

 
Example

1.)

 $SOS.RootDirectory = "C:\Temp\" #PowerShell

 SOS.RootDirectory = "C:\Temp\" 'VBS

Loads the scanned directory "C:\Temp" into the directory tree of SpaceObServer and makes it the active root directory.

2.)

 $SOS.RootDirectory = "exchange://mail" #PowerShell

 SOS.RootDirectory = "exchange://mail" 'VBS

Loads the scan results of the Exchange Server "mail" into the directory tree of SpaceObServer and makes it the active root directory.
Also accepted: SOS.RootDirectory = "mail"

3.)

 $SOS.RootDirectory = "ssh://95.108.123.204" #PowerShell

 SOS.RootDirectory = "ssh://95.108.123.204" 'VBS

Loads the scan results of the SSH scan of the server "95.108.123.204" into the directory tree of SpaceObServer and makes it the active root directory.
Also accepted: SOS.RootDirectory = "95.108.123.204"

4.)

 $SOS.RootDirectory = "merged://Container1" #PowerShell

 SOS.RootDirectory = "merged://Container1" 'VBS

Loads the container root named "Container1" into the directory tree of SpaceObServer and makes it the active root directory.
Also accepted: SOS.RootDirectory = "Container1"

 
Remarks

If the directory you assigned to "RootDirectory" is not a scanned directory root, or a sub path of a scanned directory, an Exception ("ESpaceObServerOLEException") will be raised.