Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FTP Push 'n Pull
Message
From
21/10/2008 14:17:26
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01355626
Message ID:
01356133
Views:
26
>Thanks Carlos,
>Still a bit confused. I am using CuteFTP (local) script to connect and pull files down from the ftp site.
>That part works fine. What I'm confused with is that I was planning to write a .PRG on the remote
>computer wrapped in a scheduled task to push some files to their FTP site (btw: on the same computer)
>When I RDP to work on Florida server (volume G:) In Windows Explorer I see the FTP site is visible under
>My Network Places: abcd.Alphabetcity.com I can manually copy & paste files there no problem.
>But In code on their end, how do I do this?

As Sergey wrote, if you have access to the FTP folder locally, there is no need to use the FTP protocol at all, just copy the desired files to the FTP folder and they will be available on the FTP site.

The beauty of the libcurl class is that it also supports the FILE protocol, so you can also use it to copy the files, just use the FileUploadFile method instead of the FtpUploadFile method.

Don´t worry to much about what the FILE protocol is, just know you can use it to copy files around. The same file copying you can do with Windows Explorer, you can do with the FILE protocol.

If you don't care about file names case or a progress function, just use the VFP Copy File command.

Carlos Alloatti
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform