Question

I see there are two functions in autoit to download files from the internet: inetget and inetread.

What's the difference between the two? The only difference I see is that inetGet has more options and is therefore better.

Was it helpful?

Solution

Inetget() supports background download (your script will continue its work while your file will keep downloading) and returns you a handle you can use with Inetgetinfo(). Inetread can do nothing of this.

Read the manual carefully, everything is described there. :)
By the way, AutoIT's doc is very good to me.

OTHER TIPS

There IS a big difference! InetRead() directly returns the downloaded string, so you can assign it to variable while InetGet needs a filename parameter to store into, so if you periodically get some data it may be better to use inetread instead to prevent hdd usage.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top