Jump to content

download file with IE without the SaveAs dialogbox


mary
 Share

Recommended Posts

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

Link to comment
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
Link to comment
Share on other sites

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...