Frequently Asked Component Specific Questions
Options |
|
Display all FAQ items |
Displaying items 1 to 1 of 1, page 1 of 1
<< previous next >>

TWebCopyDelete a file on FTP server
This instruction deletes a file in the default folder of the FTP server:
begin
Webcopy1.Items.Clear;
with Webcopy1.Items.Add do
begin
FTPHost := 'www.myserver.com';
FTPUserID := 'myuserid';
FTPPassword := 'mypassword';
Protocol := wpFtpDelete;
TargetDir := 'folderwherefileislocated';
url := 'myfile.zip';
end;
Webcopy1.Execute;
end;