try the retrbinary, or retrlines methods (get) or storbinary/storlines
(put). the sendcmd method sends a command to the server (ie a command
line command, not an FTP command)
Cook, Alan wrote:
> I want to send and retrieve files via FTP. I open an FTP session
> using FTP(ip, user, passwd).
> I thought that I could then use the sendcmd function to "put" or "get"
> files, however I have discovered that using, put, get, binary,
> ascii or cd to change directory, results in an error stating that the
> command is not understood.
> Can anyone tell me where I am going wrong with the sendcmd function,
> or suggest a better way to send or retrieve files. I want the ability
> to use radio buttons to select between binary and ascii transfer, and
> I want to look at a textctrl box to get the path to the folder which
> is being used on your pc to get files from, or put files into.
> Alan Cook
> e-mail alanc@... <mailto:alanc@...>