>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")
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement