Is there a problem using Inet with Windows 2000?
I was attempting to use the following code with no success:
However, this piece of code worked:Code:Private Sub cmdSend_Click() Dim strFileName As String, strFileTitle As String strFileName = CommonDialog1.FileName strFileTitle = CommonDialog1.FileTitle With Inet1 .Protocol = icFTP .URL = "xxx.xxx.xxx.xxx" .UserName = "xxx" .Password = "xxx" .Execute , "PUT " & strFileName & " " & strFileTitle End With End Sub
This code does not work either:Code:Private Sub cmdSend_Click() With Inet1 .Protocol = icFTP .URL = "xxx.xxx.xxx.xxx" .UserName = "xxx" .Password = "xxx" .Execute , "PUT C:\Test.txt Test.txt" End With End Sub
Code:Private Sub cmdSend_Click() Dim strFileName As String, strFileTitle As String strFileName = CommonDialog1.FileName strFileTitle = CommonDialog1.FileTitle With Inet1 .Protocol = icFTP .URL = "xxx.xxx.xxx.xxx" .UserName = "xxx" .Password = "xxx" .Execute , "PUT " & "'" & strFileName & "'" & " " & "'" & strFileTitle & "'" End With End Sub




Reply With Quote