I am having trouble with FTPDelete using WebCopy 2.4.0.1. I as able to download multiple files and now I want to delete them, one at a time.
webcopy1.Items.Clear;
webcopy1.DlgCaption := 'Deleting downloaded file...';
with webcopy1.Items.Add do
begin
FTPHost := sHost;
FTPuserID := sUser;
FTPpassword := sPassword;
Protocol := wpFTPDelete;
TargetDir := sFTPDir;
URL := sFileName;
end;
Webcopy1.Execute;
I do not get any error messages, but the file does not delete. I can sign into the same FTP site with WS_FTP Pro and delete the files manually without a hitch.
BTW:
sFTPDir := 'OrderExport';
sFileName := 'OrderDetail.txt';
Any idea what is wrong?
Thanks,
Marshall