General information
Category:
Coding, syntax & commands
Environment versions
Network:
Windows 2003 Server
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only