Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15589

ftp upload,download by vb6,How many ways are there?

$
0
0
by winnet.dll,I successfully logged in when I uploaded to the network disk,(nas) but the upload failed.

I think it may be caused by active mode and passive mode.

Microsoft's use of API upload method, and the use of web post or download get are feeling very cumbersome steps, and slow.
========================
now it's ok for nas
PortMode =true,by INTERNET_FLAG_PORT

Code:

Function InterConnection(IP As String, UserName As String _
, PassWord As String, Optional PortMode As Boolean) As Long
    Dim i As Long
    i = InternetConnect(hOpen, IP, 0, UserName, PassWord, 1, IIf(PortMode, INTERNET_FLAG_PORT, INTERNET_FLAG_PASSIVE), 0)
    InterConnection = i
End Function

========================
Later I used the cuteftppro method.
But this software is charged, which is really a headache.

Viewing all articles
Browse latest Browse all 15589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>