Jump to content
Sign in to follow this  
au3scr

Download file

Recommended Posts

au3scr

How i make script that download specific file with out usinb browsers?


Share this post


Link to post
Share on other sites
myself

try use function

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

more in AutoIt3.chm or somewhere else

Share this post


Link to post
Share on other sites
au3scr

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)


Share this post


Link to post
Share on other sites
baghenamoth

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)

Share this post


Link to post
Share on other sites
Madza91

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) :)

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.