bruceguag Posted September 10, 2012 Share Posted September 10, 2012 Hi I encouter a problem using inetget. I run as administrator on windows 7(64bit). Local $hDownload = InetGet("ftp://ftp.mozilla.org/pub/mozilla.org/README", @DesktopDir & "\Mozilla-README.txt", 1, 1) Do Sleep(250) Until InetGetInfo($hDownload, 2) ; Check if the download is complete. Local $nBytes = InetGetInfo($hDownload, 0) InetClose($hDownload) ; Close the handle to release resources. MsgBox(0, "", "Bytes read: " & $nBytes) but it can not work. if use http protocol, it will works ok. How to resolve the problem, or detect the issue? Any reply is appreciated! Link to comment Share on other sites More sharing options...
JohnOne Posted September 10, 2012 Share Posted September 10, 2012 Look for the _FTP* functions in the help file. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
bruceguag Posted September 11, 2012 Author Share Posted September 11, 2012 I use the follow code, just one line, it does not work. So, this is strange, Do I need to open some ports on local? or any other settings? InetGet("ftp://ftp.mozilla.org/pub/mozilla.org/README", @TempDir & "Mozilla-README.txt", 4, 1) Link to comment Share on other sites More sharing options...
JohnOne Posted September 11, 2012 Share Posted September 11, 2012 I think Inet* functions are for use with http, for ftp use the _FTP* functions. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
bruceguag Posted September 11, 2012 Author Share Posted September 11, 2012 hi john I do not follow you, I am a beginner, could you supply a link or some knowledge, that is very appreciated. Link to comment Share on other sites More sharing options...
bruceguag Posted September 11, 2012 Author Share Posted September 11, 2012 In document, InetGet support ftp protocol. Link to comment Share on other sites More sharing options...
JohnOne Posted September 11, 2012 Share Posted September 11, 2012 Sorry, My mistake. Did you read the remarks in the document about prefixing user and password if needed? It is also possible that your URL needs a correct file extension. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
bruceguag Posted September 12, 2012 Author Share Posted September 12, 2012 Hi johnI think the following code is an example from the document, it does not need user and password.InetGet("ftp://ftp.mozilla.org/pub/mozilla.org/README", @TempDir & "Mozilla-README.txt", 4, 1)Thanks for your reply. Do you have any other ideas? Link to comment Share on other sites More sharing options...
JohnOne Posted September 12, 2012 Share Posted September 12, 2012 InetGet("ftp://ftp.mozilla.org/pub/mozilla.org/README.txt", @TempDir & "Mozilla-README.txt", 4, 1) AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
bruceguag Posted September 12, 2012 Author Share Posted September 12, 2012 hi johnInetGet("ftp://ftp.mozilla.org/pub/mozilla.org/README", @TempDir & "Mozilla-README.txt", 4, 1)this code works fine on my home computer, Win 7(32bit), but it does not work on my company computer, it is a security issue? Link to comment Share on other sites More sharing options...
JohnOne Posted September 12, 2012 Share Posted September 12, 2012 Probably, you should ask an administrator at work. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
bruceguag Posted September 13, 2012 Author Share Posted September 13, 2012 Add an exception in firewall for auit3.exe or *.exe(compiled file). It works fine. 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