B
blais
Hi
I would like to send files to a FTP server. I'm using
Internet Transfer control for this but getting one error
message "Method Execute of object IInet failed". Am I
using the right syntax ?
Thanks in advance
here is the code I'm using to send files:
objFtp.Protocol = icFTP
objFtp.URL = "ftp://server.com"
objFtp.UserName = "AAA"
objFtp.Password = "ZZZZZ"
strAaRpt = "C:\FtpTest\"
strFileName = "abc.txt"
'Change to virtual directory
objFtp.Execute , "CD AlphaTest"
'Send file
objFtp.Execute , "PUT " & strAaRpt & strFileName & " "
& strFileName
I would like to send files to a FTP server. I'm using
Internet Transfer control for this but getting one error
message "Method Execute of object IInet failed". Am I
using the right syntax ?
Thanks in advance
here is the code I'm using to send files:
objFtp.Protocol = icFTP
objFtp.URL = "ftp://server.com"
objFtp.UserName = "AAA"
objFtp.Password = "ZZZZZ"
strAaRpt = "C:\FtpTest\"
strFileName = "abc.txt"
'Change to virtual directory
objFtp.Execute , "CD AlphaTest"
'Send file
objFtp.Execute , "PUT " & strAaRpt & strFileName & " "
& strFileName