Hi. Eric Ligman posted tens of free Microsoft Books again: Article A list of download URLs to get all the books is available here I saved that one (holding the URLs only) to "c:\temp\MS-free-books.txt" Some of the listed download URLs: http://ligman.me/1IW1oab
http://ligman.me/1IW1s9S
http://ligman.me/1JIhgjA
http://ligman.me/1NDTZR4
http://ligman.me/1H4VXHT
[snip]When I open these URLs one by one in a browser, I receive a "default name", mentioned in the "Save to..." box automatically. Howto use this "default name", when downloading the stuff using autoit? inetget() expects the "full-path-file-name" for the URL to be downloaded to. So this code ends up with useless filenames without extensions: #include <array.au3>
#include <file.au3>
$BookList="c:\temp\MS-free-books.txt"
Dim $aBookList
_FileReadToArray($BookList,$aBookList)
_ArrayDisplay($aBookList)
$ToFolder="C:\temp\MicrosoftFreeBooks"
DirCreate($ToFolder)
for $i = 1 to $aBookList[0]
InetGet($aBookList[$i],$ToFolder & "\" & StringTrimLeft($aBookList[$i],StringInStr($aBookList[$i],"/",0,-1)),0,1)
Next
Maybe a different function (that I miss) is what I need? Any suggestions appreciated. Regards, Rudi.