Sign in to follow this  
Followers 0
bruceguag

InetGet ftp issue

12 posts in this topic

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!

Share this post


Link to post
Share on other sites



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)

Share this post


Link to post
Share on other sites

hi john

I do not follow you, I am a beginner, could you supply a link or some knowledge, that is very appreciated.

Share this post


Link to post
Share on other sites

In document, InetGet support ftp protocol.

Share this post


Link to post
Share on other sites

Hi john

I 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?

Share this post


Link to post
Share on other sites

Add an exception in firewall for auit3.exe or *.exe(compiled file). It works fine.

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  
Followers 0