Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
West Wind wwIPStuff
Message
From
18/10/1998 08:37:27
 
 
To
15/10/1998 06:32:26
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00147065
Message ID:
00147923
Views:
25
>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
Map
View

Click here to load this message in the networking platform