BlazeLondon Posted March 22, 2006 Share Posted March 22, 2006 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 More sharing options...
ChrisL Posted March 22, 2006 Share Posted March 22, 2006 Bump.. I cant get it to download a file either [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire Link to comment Share on other sites More sharing options...
omlip Posted March 22, 2006 Share Posted March 22, 2006 Does InetGet method has got a "filename" as parameter "ftp.fomain.com/updates" won't be a directory ? maybe i'm wrong but it's what i believe ciao omlip Link to comment Share on other sites More sharing options...
BlazeLondon Posted March 22, 2006 Author Share Posted March 22, 2006 Does InetGet method has got a "filename" as parameter"ftp.fomain.com/updates" won't be a directory ?maybe i'm wrong but it's what i believeciaoomlipsorry?! Link to comment Share on other sites More sharing options...
omlip Posted March 22, 2006 Share Posted March 22, 2006 sorry for my bad english the method InetGeT take the filename as parameter, isn'it? so i ask why you didn't do that "ftp.domain.com/updates" is a file or directory? a+ omlip Link to comment Share on other sites More sharing options...
GaryFrost Posted March 22, 2006 Share Posted March 22, 2006 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)WendI 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 More sharing options...
BlazeLondon Posted March 22, 2006 Author Share Posted March 22, 2006 sorry for my bad englishthe method InetGeT take the filename as parameter, isn'it?so i ask why you didn't do that"ftp.domain.com/updates" is a file or directory?a+omlip/*.exeor i've tried/filename.exeneither get the file! Link to comment Share on other sites More sharing options...
GaryFrost Posted March 22, 2006 Share Posted March 22, 2006 /*.exeor i've tried/filename.exeneither get the file!I would help more but don't have an ftp site to test from 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 More sharing options...
BlazeLondon Posted March 22, 2006 Author Share Posted March 22, 2006 I would help more but don't have an ftp site to test fromftp://ftp.qualit-uk.com/some exes here u can download Link to comment Share on other sites More sharing options...
BlazeLondon Posted March 22, 2006 Author Share Posted March 22, 2006 I would help more but don't have an ftp site to test fromgary 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 Link to comment Share on other sites More sharing options...
Uten Posted March 22, 2006 Share Posted March 22, 2006 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 Please keep your sig. small! Use the help file. Search the forum. Then ask unresolved questions :) Script plugin demo, Simple Trace udf, TrayMenuEx udf, IOChatter demo, freebasic multithreaded dll sample, PostMessage, Aspell, Code profiling Link to comment Share on other sites More sharing options...
GaryFrost Posted March 22, 2006 Share Posted March 22, 2006 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 More sharing options...
omlip Posted March 22, 2006 Share Posted March 22, 2006 yes like this, with only one files it works great since InetGet doesn't support wildcard Link to comment Share on other sites More sharing options...
BlazeLondon Posted March 22, 2006 Author Share Posted March 22, 2006 yes like this, with only one files it works great since InetGet doesn't support wildcardwill it download the file if it already exists?only want to download it if it has changed as its big! Link to comment Share on other sites More sharing options...
GaryFrost Posted March 22, 2006 Share Posted March 22, 2006 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 outGot 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 More sharing options...
omlip Posted March 22, 2006 Share Posted March 22, 2006 Qual-IT London >>> yes it overwrite the file Link to comment Share on other sites More sharing options...
BlazeLondon Posted March 22, 2006 Author Share Posted March 22, 2006 will it download the file if it already exists?only want to download it if it has changed as its big!can we make this function only download if the file is newer or different size? Link to comment Share on other sites More sharing options...
GaryFrost Posted March 22, 2006 Share Posted March 22, 2006 can we make this function only download if the file is newer or different size?look at InetGetSize 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 More sharing options...
BlazeLondon Posted March 22, 2006 Author Share Posted March 22, 2006 look at InetGetSize$remotesize=InetGetSize ( "ftp://" & $us & ":" & $pw & "@" & $ur & "/engine.exe" )$localsize=Filegetsize(@scriptdir & "\engine.exe")if $localsize <> $remotesize thenmayb this Link to comment Share on other sites More sharing options...
GaryFrost Posted March 22, 2006 Share Posted March 22, 2006 $remotesize=InetGetSize ( "ftp://" & $us & ":" & $pw & "@" & $ur & "/engine.exe" )$localsize=Filegetsize(@scriptdir & "\engine.exe")if $localsize <> $remotesize thenmayb thisThat 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 More sharing options...
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