Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
West Wind wwIPStuff
Message
De
18/10/1998 08:37:27
 
 
À
15/10/1998 06:32:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00147065
Message ID:
00147923
Vues:
26
>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
Fil
Voir

Click here to load this message in the networking platform