Jump to content

Recommended Posts

Posted

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!

Posted

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)

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
×
×
  • Create New...