|
Application Programming Interface (API)
Control Download Mage Programmatically
กก
DnloadMage.Staff
Automation Object
The DnloadMage.Staff automation object
provides download funtions to other applications. The DnloadMage.Staff
automation object has these methods:
DnloadLink Method:
Description:
Download specified URL into a local file.
Syntax:
object.DnloadLink URL, saveas
Arguments:
URL: A string expression that evaluates to the URL for download (e.g.
http://www.server.com/file.ext)
saveas: A full local path for the file to be downloaded (e.g. c:\download\file.ext)
TryDnloadLink, TryDnloadLink2 Method:
Description:
Download specified URL with prompt
Syntax:
object.TryDnloadLink URL object.TryDnloadLink2 URL, docURL
Arguments:
URL: A string expression that evaluates to the URL for download (e.g.
http://www.server.com/file.ext)
docURL: A URL representing the parent document (referrer). (e.g.
http://www.server.com/index.htm)
Remarks:
Download Mage will test the URL and prompt user for destination directory
before downloading.
กก
Copyright 2000-2002 by
L&C Tek.
|