Sign in to follow this  
Followers 0
Jeanpierre92

Download a file from the internet

6 posts in this topic

Why doesn't the download a file from the internet command works?

I think that it is my fault and not the fault of autoit3 :(

InetGet ( "URL" [,"filename" [, reload [, background]]] )

I have tried many things:

InetGet("http://www.somesite.net/f/Update3.2.12.nomap.zip", "Update3.2.12.nomap.zip", 0, 1)

InetGet("http://www.somesite.net/f/Update3.2.12.nomap.zip", "Update3.2.12.nomap.zip", 1, 1)

InetGet("http://www.somesite.net/f/Update3.2.12.nomap.zip", "Update3.2.12.nomap.zip", 0, 1)

InetGet("http://www.somesite.net/f/Update3.2.12.nomap.zip", "Update3.2.12.nomap.zip", 1, 0)

InetGet("http://www.somesite.net/f/Update3.2.12.nomap.zip", "Update3.2.12.nomap.zip", 0, 0)

InetGet("http://www.somesite.net/f/", "Update3.2.12.nomap.zip", 0, 0)

InetGet("http://www.somesite.net/f", "Update3.2.12.nomap.zip", 0, 0)

InetGet("http://www.somesite.net/f/Update3.2.12.nomap.zip")

Thanks in advance,

Jeanpierre

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

InetGet("http://www.google.com/intl/en_ALL/images/logo.gif", @ScriptDir & "\Google_Logo.gif", 1, 0)

Does this work for you? (It works for me)

Are you using beta?

Are you an administrator? I'm not sure if it matters but you can always use #RequireAdmin.

Edited by darkjohn20

Share this post


Link to post
Share on other sites

ooh it works :( thanks

Share this post


Link to post
Share on other sites

Yes now it downloads a file from the internet, but how must I let the user choose where to put the script?

now I have this:

InetGet("http://www.asite.net/f/Update3.2.12.nomap.zip", @ScriptDir & "\Update3.2.12.nomap.zip", 1, 0)

Share this post


Link to post
Share on other sites

FileSaveDialog() ? :(

Share this post


Link to post
Share on other sites

Thanks for help now it works :(

This is what I did:

Func updateButton()
    $opslagPlaats = FileSaveDialog("Choose a File name + File path", @ScriptDir, "All(*.*)|Rar File(*.rar)", 2)
    If @error Then
        MsgBox(0, "Error", "Save Cancelled - Give the file a name")
    Else
        InetGet("http://www.agbot.net/f/Update3.2.12.nomap.zip", $opslagPlaats, 1, 0)
    EndIf
EndFunc

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