Jump to content
Sign in to follow this  
bruceguag

InetGet ftp issue

Recommended Posts

bruceguag

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
bruceguag

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
bruceguag

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
bruceguag

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  

×