Jump to content

Wget


Recommended Posts

Just ditched command line wget tool in place of this command i found in the autoIT manual (thanks ChrisL)

only thing is, it doesnt work! any ideas?

$us="nick"

$pw="password"

$ur="ftp.mydomain.com/updates"

AutoItSetOption ( "FtpBinaryMode" ,1 ) ; 1 binary

$get=InetGet("ftp://" & $us & ":" & $pw & "@" & $ur, "/*.exe")

While @InetGetActive

TrayTip("Updating Q-Backup", "Bytes = " & @InetGetBytesRead, 10, 16)

Sleep(250)

Wend

Link to comment
Share on other sites

Just ditched command line wget tool in place of this command i found in the autoIT manual (thanks ChrisL)

only thing is, it doesnt work! any ideas?

$us="nick"

$pw="password"

$ur="ftp.mydomain.com/updates"

AutoItSetOption ( "FtpBinaryMode" ,1 ) ; 1 binary

$get=InetGet("ftp://" & $us & ":" & $pw & "@" & $ur, "/*.exe")

While @InetGetActive

TrayTip("Updating Q-Backup", "Bytes = " & @InetGetBytesRead, 10, 16)

Sleep(250)

Wend

I don't see in the help where wildcards can be used in inetget, try just one file and see if that works.

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

The second argumnet filename is the local filename you want the first argument to be saved to.

I do not think "/*.exe" or "/myfilename.txt" is valide filenames (due to the / and /*)?

Regards

Uten

Link to comment
Share on other sites

this works without having to set the option to binary

InetGet("ftp://ftp.qualit-uk.com/MULTIPAD.EXE", @ScriptDir & "\MULTIPAD.EXE", 1, 1)

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

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

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

gary while ur here, do u know how to call a dll to fllush the disk caches on the system?

so u can just pull a removable drive out

Got nothing there for you.

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

$remotesize=InetGetSize ( "ftp://" & $us & ":" & $pw & "@" & $ur & "/engine.exe" )

$localsize=Filegetsize(@scriptdir & "\engine.exe")

if $localsize <> $remotesize then

mayb this

That should work for size

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

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