sub DownloadFile(Handle, sUrl As String, sReferer As String, bAllowDuplicates As Boolean)
|
Adds the internet address sUrl to the Download Manager.
Parameters
| • | Handle ... Bookmark-Handle that is passed to the Event function (optional). |
| • | sUrl ... Address of the file that should be downloaded. |
| • | sReferer ... URL from which the file is usually downloaded (eg. URL of the download page). This parameter can be empty in most cases except the server requires that field. |
| • | bAllowDuplicates ... Boolean Value: |
| ► | TRUE = If the download address (sUrl) already exists in the download manager, then the download is re-inserted and downloaded to a new unique file name. |
| ► | FALSE = If the download address (sUrl) already exists in the download manager, then the download will not be added to the download manager. |
Example:
DownloadFile(Handle, "http://www.domain.com/download/setup.exe", "", TRUE)
DownloadFile(0, "http://www.domain.com/download/setup.exe", "http://www.domain.com/downloads/", TRUE)
|
|