ftp 谁知道关于的操作尤其是怎么判断ftp上面有没有你像要的那个文件那?要是有的话下载,怎么下载,要是没有的话提示!谢谢了阿,我很着急idftp1.get()idftp1.put()具体都怎么用阿? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 indyFtp.Host := HostIP; indyFtp.Port := HostPort; indyFtp.Username := FTP_USERNAME; indyFtp.Password := FTP_PASSWORD; try indyFtp.Connect(True); if indyFtp.Connected then begin if not ChangeFtpDir(indyFtp, Copy(FileInfo.szDateTime, 1, 8)) then begin indyFtp.Disconnect; indyFtp.Free; Exit; end;//////////////////////////////////////////////////////////////////////////////////// //ÏÂÔØÎļþ try indyFtp.Get(FileName,FullPath,True); Result := True; except indyFtp.Disconnect; indyFtp.Free; Exit; end; end; Finally indyFtp.Disconnect; indyFtp.Free; end; 求delphi hash_hmac函数 初学DELPHI、希望大家给推荐几本书? sql组合查询语句 DELPHI聖地(19234671)第四次重整,歡迎加入 对腾讯QQ的几点探讨.一起研究! 在fastReport中难道不能自定义纸张大小的问题? 一个非常奇怪的问题,大伙儿帮个忙~~ 请问生成的EXE的图标如何更改, TtreeNode.data 如何写数据 菜鸟求助:var buf: Array[1.100] of Char; begin buf := 'Hello';end;编译不通过? delphi的颜色常量 巨分求助关于打印的问题
indyFtp.Port := HostPort;
indyFtp.Username := FTP_USERNAME;
indyFtp.Password := FTP_PASSWORD; try
indyFtp.Connect(True);
if indyFtp.Connected then
begin
if not ChangeFtpDir(indyFtp, Copy(FileInfo.szDateTime, 1, 8)) then
begin
indyFtp.Disconnect;
indyFtp.Free;
Exit;
end;////////////////////////////////////////////////////////////////////////////////////
//ÏÂÔØÎļþ
try
indyFtp.Get(FileName,FullPath,True);
Result := True;
except
indyFtp.Disconnect;
indyFtp.Free;
Exit;
end;
end;
Finally
indyFtp.Disconnect;
indyFtp.Free;
end;