Download
Top  Previous  Next

Related example macro: Demo-Download

Downloads are controlled by:

ONDOWNLOAD FOLDER=* FILE=+_{{yyyymmdd_hhnnss}}


FOLDER Settings:


1. Empty or with an asterisk ("*"), like in "FOLDER=*". In this case, the default download folder is used.
2. The absolute path to a folder, e.g. "FOLDER=c:\mydownloads".

FILE Settings:


The file name can the original file, the original file plus a tag
or a file name defined by you.

Example: You want to download a file with the file name "stockreport.pdf":

(1) If you use "FILE=" you get "stockreport.pdf".

(2) If you use "FILE=Intel" you get "Intel.pdf" (the original file extension is always preserved).

(3) If you use "FILE=+
Intel" you get "stockreportIntel.pdf" ("+" means, that the text is appended to the original file name).

(4) If you use "FILE=+
_{{!NOW:YYYYMMDD_hhmmss}}" you get "stockreport_20040525_141030.pdf".

The example (4) is used by default.

{{!NOW:...}} is a built-in variable. This variable is filled with the current date and time when the command is reached.

Note: The general web page timeout also applies to downloads. So make sure that the timeout value is long enough to cover the complete download time. If needed, you can also increase the timeout value manually inside the macro with SET !TIMEOUT.





Page URL http://www.iopus.com/imacros/help/download_dialog.htm