Hi,
I'm looking for a way to copy a file to an FTP server. It's not an FTP-server on the internet but on a LAN. I have an IP from a computer somewhere on the local area network of our company.
I tried it with the MS Internet Transfer control like this:
with ctlFTP
.Protocol = icFTP
.URL = "ftp://x.x.x.x/dir/dir/"
.UserName = "xxxxx"
.Password = "blabla"
.Execute , "PUT " & FromFile & " " & ToFile
end with
This returns "Command succesfully completed" or something like that as a returninfo, but the file is not copied to that location.
I can copy the file manually from an FTP session initiated from the Command prompt.
Is this the correct way to do it or are there other ways?
TIA
Bart
I'm looking for a way to copy a file to an FTP server. It's not an FTP-server on the internet but on a LAN. I have an IP from a computer somewhere on the local area network of our company.
I tried it with the MS Internet Transfer control like this:
with ctlFTP
.Protocol = icFTP
.URL = "ftp://x.x.x.x/dir/dir/"
.UserName = "xxxxx"
.Password = "blabla"
.Execute , "PUT " & FromFile & " " & ToFile
end with
This returns "Command succesfully completed" or something like that as a returninfo, but the file is not copied to that location.
I can copy the file manually from an FTP session initiated from the Command prompt.
Is this the correct way to do it or are there other ways?
TIA
Bart