[求助]如何进行文件自动传输
我想在两台计算机之间进行文件的自动传输,想实现传过的文件下次传输时就不传了,请高手教我如何实现,想用FTP方式实现,请大家帮帮忙,急死我了!
procedure TForm1.Button1Click(Sender: TObject);
var
aDirList: TStringList;
aServerDir: string;
aYourFile: string;
finded: boolead;
begin
IdFTP1.User := '';
IdFTP1.Password := '';
IdFTP1.Host := '';
IdFTP1.Port := ;
IdFTP1.TransferType := ;
IdFTP1.Connect();
IdFTP1.ChangeDir(aServerDir);
aDirList:= TStringList.Create;
finded := True;
try
IdFTP1.List(aDirList, aYourFile, False);
except
finded := False;
end;
if finded then
begin
Memo1.Lines.Assign(aDirList);
end
else
begin
Memo1.Lines.Add('can not find');
end;
aDirList.Free;
end;