banner

External.GetFile method

Retrieves a file from a Uniform Resource Locator (URL) and saves the file to the specified location.

Syntax

bSuccessful = window.external.GetFile(sUrl, sFileName);

Parameters sUrl

String. The URL from which to retrieve the file.

sFileName

String. The name under which to save the retrieved file.

Return Values Boolean. Returns the value TRUE if it successfully retrieved and saved the file to disk.
Applies To window.external
Example
bFileSaved = window.external.GetFile("http://www.fabrikam.com", "MyFile.bmp");