Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Jun : Re: ftp getting err msg
| Subject: | Re: ftp getting err msg |
| Posted by: | "Remy Lebeau (TeamB)" (no.spam@no.spam.com) |
| Date: | Mon, 26 Jun 2006 11:24:11 |
"Blackbird Crow Raven" <blacky@redgreen.com> wrote in message
news:449c9f2c$1@newsgroups.borland.com...
> I'm not using a server
Then what are you connecting to in the first place? You can't use the FTP
protocol without an FTP server to manage the files. You cannot connect an
FTP client to the file system directly. You should have been getting an
error from TIdFTP.Connect() trying to connect to a non-existent server. The
only way it wouldn't error is if you actually do have an FTP server running
on your local machine, and just don't realize it.
> What I eventually need to do is programattically move files each
> day from a remote machine to the local one.
FTP is good for that. But you would need an FTP server running on the
remote machine in order to gain access to the remote machine's files.
Alternatively, if the remote machine is always on the same network as your
client, then you could just share the remote folders on the network and then
use UNC paths with the CopyFile() function.
> Quite likely, since I don't have an ftp server running at all, at least
> not to my knowledge/not deliberately. Perhaps there's a better/easier
> way to do what I'm doing than using ftp. All I need to do is move some
> files from a remote computer (I think it will be a Linux box) to a
> Windows machine.
Then use FTP, especially since you have Linux involved. Just install an FTP
server onto the remote machine. There are many choices available. You
could even write your own with Indy, which has a TIdFTPServer and supports
development for Linux (amongst other platforms)
Gambit