Jump to content

Recommended Posts

Posted

I know that there is many solutions to download file (InetGetsource, or other activex or command line tools...)

My queston is only about Internet Explorer. i.e how we can download file with IE without the SaveAs dialog box ?

thinks a lot

Posted

I get the impression you are talking about someone clicking on a link and the file just going directly to there computer.. with no prompts etc.?

If so, thats not going to happen.

Posted (edited)

That comes up with something similar:

#include<IE.au3>
$ie = _IECreate('http://www.autoitscript.com', 0, 0, 1, -1)
$doc = _IEBodyReadText($ie)
FileWrite(@DesktopDir &"\file.txt", $doc)
Exit

thinks a lot

think you very much :)

EDIT: actually that works

Edited by Gif
Posted

That comes up with something similar:

#include<IE.au3>
$ie = _IECreate('http://www.autoitscript.com', 0, 0, 1, -1)
$doc = _IEBodyReadText($ie)
FileWrite(@DesktopDir &"\file.txt", $doc)
Exit

think you very much :)

EDIT: actually that works

Sorry this works only if you want to download the html source code but it did not work for binary files like *.jpg or .zip ...etc
Posted (edited)

Sorry this works only if you want to download the html source code but it did not work for binary files like *.jpg or .zip ...etc

if you want to download a file from a url use INetGet() like:

INetGet('http://www.autoitscript.com/images/autoit_6_240x100.jpg', @desktopdir &'\autoit logo.jpg')
Exit

also look here for another way

Edited by Gif

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...