Hello all,
I am tring to write ftp module that ftps specific direcotry to an ftp server.
here is my code:
Private Sub cmdftp_Click()
Dim host_name As String
Enabled = False
MousePointer = vbHourglass
txtResult.Text = "Working"
txtResult.SelStart = Len(txtResult.Text)
DoEvents
host_name = "ftp://192.168.1.1"
inetFTP.UserName = txtusername.Text
inetFTP.Password = txtpasswd.Text
inetFTP.Execute , "Put " & all_dir_files
End Sub
Error "object required"
on line inetFTP.UserName = txtusername.Text
Any help will be appreciated.
thanks,
I am tring to write ftp module that ftps specific direcotry to an ftp server.
here is my code:
Private Sub cmdftp_Click()
Dim host_name As String
Enabled = False
MousePointer = vbHourglass
txtResult.Text = "Working"
txtResult.SelStart = Len(txtResult.Text)
DoEvents
host_name = "ftp://192.168.1.1"
inetFTP.UserName = txtusername.Text
inetFTP.Password = txtpasswd.Text
inetFTP.Execute , "Put " & all_dir_files
End Sub
Error "object required"
on line inetFTP.UserName = txtusername.Text
Any help will be appreciated.
thanks,