>I have a slight problem with the FTPSendfile method under VFP 6.0:
>it appears that I can't store files on server in any other
>than the current directory. I can live with that, but can't help
>wondering if I'm doing something wrong here, because the help claims
>this to be possible.
>
>?Thisform.FTP.FTPSendFile ("ftp.someserver.com", "c:\somefile.txt", "/in/bah.txt", "xxx", "yyy")
>
>Winsock returns error 12003
>Server returns 550 Permission denied
>
>Tried this on three different FTP servers, all running on different platforms.
Okay, figured it out. Just put a dot in front of the first forward slash
in pathname and it works:
?Thisform.FTP.FTPSendFile ("ftp.someserver.com", "c:\somefile.txt", "./in/bah.txt", "xxx", "yyy")
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only