SaveToDisk

 

Description

 

Saves the current page and all it’s embedded objects (images, video clips etc) to disk.

 

Arguments

 

Name

Type

I/O

Description

FileName

String

In

The name of the file in which to save the current HTML page, or blank to synthesize a name based on the file name portion of the URL of that page.

 

Return Value

 

Short Integer: zero for success, else non-zero.

 

Remarks

 

This method corresponds to the Save button in the toolbar.

 

Files are saved to the directory specified by DownloadDir unless an explicit path is specified in the FileName argument. Embedded images are saved in the same directory as the textual content.

 

The current page and any objects embedded in the page are written to separate disk files with this method. To capture only the textual content of any cached page or individual embedded images use the SaveObjectToFile method.