admin wrote:admin wrote:TheQwerty wrote:I assume this is using the same code, so perhaps Download2 may soon become public?


Impressive, TheQwerty! Not only can you read binaries, you also read thoughts!

Okay, play with it (but use "download2" instead of "download") :
Code: Select all
' download file from the internet
' syntax: download SourceUrl, [TargetFile]
' SourceUrl: any URL (http:// or ftp:// or file:///)
' TargetFile: defaults to <curpath>\sourcefilename
' ::download "http://www.xyplorer.com/download/xyplorer_6.80_beta_noinstall.zip", "<curpath>\xy.zip"

Nice one there, but before it's made public it'd be nice to have a way to get feedback of statusbar (% when/if possible, or size downloaded so far otherwise). (Ideally we could send a text to be used on statusbar as well - as prefix, or using %s)
Then, if <target> could actually be a variable, and with another param it means XY won't read the file name from that variable, but actually store the URL's content into that variable, that would be the best (unless that's for the command read?)
Because ATM for example my script to auto-update XY relies on two external app (wget & clip), but if I could have ways to download an URL into a file, as well as load it into a variable, then I could finally make my script dependencies-free! (Well, except for WinRAR but that one I don't count, obviously)