Choose one: (1) Install Package, (2) No-Install Package (each about 1 MB).
Code: Select all
v7.50.0013 - 2008-09-04 15:13
+ Scripting got a new command:
- Download
Action: Download a file from the internet to a specified
location.
Syntax: download sourceurl, [targetfile], [options]
sourceurl: [required] any URL (http:// or ftp://)
targetfile: [optional] full path/file of desired target
UNC works as well
Defaults:
- if empty: <curpath>\sourceurlfilename
- if only file (or relative path): <curpath>\targetfile
- if only path: <targetfile>\sourceurlfilename
- if sourceurl has no filename: "Download.dat"
options: [optional] choose one or none:
o = on collision: overwrite without asking
i = on collision: auto-increment targetfile
(empty) = on collision: ask before overwriting
Examples:
::download "http://www.xyplorer.com/tour/images/pfa.png"
= downloads "pfa.png" to "<curpath>\pfa.png"
::download "http://www.xyplorer.com/tour/images/pfa.png", , i
= downloads "pfa.png" to "<curpath>\pfa.png"
adds increment (e.g. pfa-01.png) if pfa.png already exists
::download "http://www.xyplorer.com/download/xyplorer_full.zip",
"xy.zip"
= downloads "xyplorer_full.zip" to "<curpath>\xy.zip"
::download "http://www.xyplorer.com/"
= downloads "index.htm" to "<curpath>\Download.dat"
::download "ftp://ftp.editplus.com/epp230hlp.zip", "D:\Download\"
= downloads "epp230hlp.zip" to "D:\Download\epp230hlp.zip"
Remarks
~~~~~~~
- The application waits until the download is complete. You can
abort the download at any time by pressing ESC.
- The maximum file size is set to 100 MB (but see the previous
point...).
- The download progress is shown in the statusbar.
- If there is no internet connection, your system might attempt to
establish one (if you configured it like that) and then continue
with the download.
- If sourceurl is ftp:// then there is currently no test for
existence of the remote file, nor can its size be determined.
Nevertheless the download works (but you cannot know how long it
will take).
- Only anonymous FTP is supported.
- After a successful download the Last Target Path is set (menu Go
| Go To Last Target).
+ Scripting commands enhanced:
- setting, settingp
New named argument "nowatchduringfileop"
= enable/disable "No Refresh during File Operations"
Example:
::setting nowatchduringfileop, 1;
= Auto-Refresh is suspended during file operations
As with all setting statements, the original state from before
the script is automatically restored when the script is done.
* Scripting: The "Continue the script?" prompt now displays the
current script line.
XYplorer Beta Club