Jump to content

Download a file from the internet


Recommended Posts

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

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