Jump to content

Download file


au3scr
 Share

Recommended Posts

but i dont download file fully

InetGet("http://autoit.pri.ee/downloads/", "Notepad2.exe", 1, 1)

While @InetGetActive

TrayTip("Downloading", "Bytes = " & @InetGetBytesRead, 10, 16)

Sleep(250)

Wend

MsgBox(0, "Bytes read", @InetGetBytesRead)

Link to comment
Share on other sites

well, I guess you want to download notepad2.exe, so you have to specify the full url of the file :

InetGet("http://autoit.pri.ee/downloads/Notepad2.exe", "Notepad2.exe", 1, 1)

While @InetGetActive
TrayTip("Downloading", "Bytes = " & @InetGetBytesRead, 10, 16)
Sleep(250)
Wend

MsgBox(0, "Bytes read", @InetGetBytesRead)

your code below has simply downloaded the page http://autoit.pri.ee/downloads/, even if you specified to record it under Notepad2.exe

try to rename your Notepad2.exe to Notepad2.html and launch it, you will see...

but i dont download file fully

InetGet("http://autoit.pri.ee/downloads/", "Notepad2.exe", 1, 1)

While @InetGetActive

TrayTip("Downloading", "Bytes = " & @InetGetBytesRead, 10, 16)

Sleep(250)

Wend

MsgBox(0, "Bytes read", @InetGetBytesRead)

Link to comment
Share on other sites

Hi,

InetGet("http://autoit.pri.ee/downloads/Notepad2.exe", "Notepad2.exe", 1, 1)

While @InetGetActive
TrayTip("Downloading", "Bytes = " & @InetGetBytesRead, 10, 16)
Sleep(250)
Wend

MsgBox(0, "Bytes read", @InetGetBytesRead)
Edited by n3nE

[quote name='dbzfanatic' post='609696' date='Nov 26 2008, 08:46 AM']This is a help forum not a "write this for me" forum.[/quote](Sorry for bad English) :)

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...