Sign in to follow this  
Followers 0
mary

download file with IE without the SaveAs dialogbox

5 posts in this topic

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

Share this post


Link to post
Share on other sites



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.

Share this post


Link to post
Share on other sites

#3 ·  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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

#5 ·  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

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0