SpaceObServer.Application.HTMLExport

<< Click to Display Table of Contents >>

Navigation:  OLE Automation > Application > Methods >

SpaceObServer.Application.HTMLExport

Description

Allows you to export any  SpaceObServer statistic (lists and charts) to a HTML file.
 

Syntax

HTMLExport (ExportPath : <String>, ExportFullBranch : <Boolean>, IncludeHeader : <Boolean>, IncludeUnit : <Boolean>, [optional]Statistics : <String>)
 

Parameters

ExportPath

The full path of the export file (including the exported file name).
You can use environment variables as well as "%DATE%" and "%TIME%" in the file path.

ExportFullBranch

Indicates, if the export will include the full directory branch or only expanded directories.

IncludeHeader

Indicates, if a header with general information about the root directory/drive will be included.

IncludeUnit

Indicates, if size units and thousand separator will be included in the export of the scantree, or if sizes are exported as plain numbers. Note: This parameter does not affect the export of any list except the scantree.

Statistics

(Optional Parameter) A semicolon separated list of charts and lists, which should be included in the HTML export.
The table of the Export Statistics lists all accessible types of charts and lists.

Note: If this parameter is not set, the directory tree will be exported (default).

 
Example

$SOS.HTMLExport("C:\Temp\SOS\htmlexport.html", $False, $True, $True, "scantree; detailslist; piechart; historychart") #PowerShell

SOS.HTMLExport "C:\Temp\SOS\htmlexport.html", False, True, True, "scantree; detailslist; piechart; historychart" 'VBS                

Produces a report in a HTML file named "htmlexport.html" in the folder "C:\Temp\SOS\" that includes a header and size units, but shows only the expanded directories. The HTML file contains the directory tree, the details list, the pie chart and the history chart of the current root.