download now as
Downloads the file indicated by the URL and allows you to rename
it. After downloading, the file is saved in a folder named __Download
(the
folder name begins with two underscores) relative to the local folder
of the Fixlet Site that issued the download now as command.
If the download fails, the action script terminates.
For instance, consider the command:
download now as intro.txt ftp://ftp.microsoft.com/deskapps/readme.txt
The action example above immediately downloads the readme.txt
file
from the Microsoft site and automatically saves it in the local __Download
folder
as intro.txt
.
Syntax
download now as <name> <url>
Where name is a simple filename, without special characters or path delimiters. If the name violates any of the following rules, the download command will fail:
Name must be 32 characters or less.
Name must only be composed of ASCII characters a-z, A-Z, 0-9, -, _, and non-leading periods.
Here url is the complete URL of the specified file.
Examples
download now as myprog.exe http://www.website.com/update/prog555.exe
Immediately downloads the prog555.exe file from the specified folder on the web site, directs the downloaded file to the action site "__Download" folder and names it myprog.exe.
download now as patch2 http://www.download.windowsupdate.com/msdownload/update
/v3-19990518/cabpool/q310507_2f3c5854999b7c58272a661d30743abca15caf5c.exe
continue if {(size of it = 845416 and sha1 of it =
"c964d4fd345b6e5fd73c2235ec75079b34e9b3d2") of file "patch2.exe" of folder
"__Download"}
Immediately downloads the specified file from the web site, directs
the downloaded file to the action site __Download
folder
and names it patch2
. The action continues only if
the size and sha1 are correct.
Version 6.0 and above -- Windows Only