download 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 as command.
For instance, consider the command:
download as intro.txt ftp://ftp.microsoft.com/deskapps/readme.txt
The action example above downloads the readme.txt file from the Microsoft site and automatically saves it in the local __Download folder as intro.txt. If the download fails, the action script terminates.
This command, when accompanied by a continue if with a sha1 or sha256 value, allows the file to be pre-fetched.
Syntax
download 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 as myprog.exe http://www.website.com/update/prog555.exe
Downloads the prog555.exe file from the specified folder on the web site, directs the downloaded file to the action site "__Download" folder and renames it to myprog.exe.
download as patch1 http://www.download.windowsupdate.com/msdownload/update/v3-
19990518/cabpool/q307869_f323efa52f460ea1e5f4201b011c071ea5b95110.exe
continue if {(size of it = 813160 and sha1 of it =
"92c643875dda80022b3ce3f1ad580f62704b754f") of file "patch1" of
folder "__Download"}
Downloads the specified file, renames it patch1 and continues only if the size and sha1 are correct.
relevance substitution is NOT performed on the download as action command lines. This is because these actions are scanned by other components that deliver the downloads and these other components run on different machines which do not share those client's evaluation context. This restriction, however, allows IBM BigFix to prefetch downloads through a relay hierarchy to the clients.
Version 6.0 and above -- Windows Only