TURNERMICH
Technical User
am connecting to an FTP site. using "wininet.dll"
hOpen = InternetOpen(scUserAgent, INTERNET_OPEN_TYPE_DIRECT, vbNullString, vbNullString, 0)
If hOpen = 0 Then
MsgBox ("Internet Not Connected..."
Exit Sub
End If
2.
hConnection = InternetConnect(hOpen, TxtServer, INTERNET_INVALID_PORT_NUMBER, _
TxtUser, TxtPassWord, INTERNET_SERVICE_FTP, nFlag, 0)
If hConnection = 0 Then
MsgBox ("Error Connecting to Internet"
Exit Sub
End If
???????????????????
After running.....
If hConnection <> 0 Then InternetCloseHandle hConnection
When i look at the FTP Server (SERV-U), THE CONNECTION IS NOT SHOWN AS CLOSED.
if i use say wsftp or webdrive, programs, when close is clicked,the connection is shown as closed.,
on the ftp server.
How do i send a command to the FTP Server to CLOSE the Connection on the Server, in VB6.
Appreciate any help
hOpen = InternetOpen(scUserAgent, INTERNET_OPEN_TYPE_DIRECT, vbNullString, vbNullString, 0)
If hOpen = 0 Then
MsgBox ("Internet Not Connected..."
Exit Sub
End If
2.
hConnection = InternetConnect(hOpen, TxtServer, INTERNET_INVALID_PORT_NUMBER, _
TxtUser, TxtPassWord, INTERNET_SERVICE_FTP, nFlag, 0)
If hConnection = 0 Then
MsgBox ("Error Connecting to Internet"
Exit Sub
End If
???????????????????
After running.....
If hConnection <> 0 Then InternetCloseHandle hConnection
When i look at the FTP Server (SERV-U), THE CONNECTION IS NOT SHOWN AS CLOSED.
if i use say wsftp or webdrive, programs, when close is clicked,the connection is shown as closed.,
on the ftp server.
How do i send a command to the FTP Server to CLOSE the Connection on the Server, in VB6.
Appreciate any help