Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using FtpPutFile and sub folders
Message
 
To
28/06/2006 09:14:17
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Pro
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01132356
Message ID:
01132369
Views:
18
it was only after i posted this that i realised that i could move the directory as it would not effect the program! also on the ftp side i just used FtpSetCurrentDirectory(lhFTPSession,remotedir) and then sent the file.
Thanks
~M

>Hi Mark,
>
>I think you should change the directory before coping the file.
>
>For example:
>lcPath = Fullpath("")
>cd subdir
>... ftp command ...
>cd (lcPath)
>
>HTH
>
>>hi all,
>>I am trying to copy up a file to an ftp server. if the file is in the application folder then it copies to the ftp server with no problems. if the file to be sent is in a subfolder it does not work. also if i try to send the file to a valid subfolder on the ftp server then it fails. i have tried using the remote location as /test1/filename.zip, test1/filename.zip, \test1\filename.zip and test1\filename.zip but none work. any pointers welcomed
>>Slán
>>~M
Go raibh maith agat

~M
Previous
Reply
Map
View

Click here to load this message in the networking platform