Jeanpierre92 Posted April 5, 2010 Posted April 5, 2010 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
darkjohn20 Posted April 5, 2010 Posted April 5, 2010 (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 April 5, 2010 by darkjohn20
Jeanpierre92 Posted April 5, 2010 Author Posted April 5, 2010 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)
Jeanpierre92 Posted April 6, 2010 Author Posted April 6, 2010 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now