求一段下载http及ftp文件的代码

soloxiao 2002-08-29 12:26:00
mail to:soloxiao@etang.com
...全文
43 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
NowCan 2002-08-30
  • 打赏
  • 举报
回复
用Indy,简单得很
echoher 2002-08-29
  • 打赏
  • 举报
回复
if (!NMFTP->Connected)
{
BitBtn1->Enabled = false;
BitBtn1->Caption = "断开连接";
NMFTP->ReportLevel = Status_Basic;
NMFTP->Host = addr->Text;
NMFTP->Port = StrToInt(port->Text);
NMFTP->UserID = user_id->Text;
NMFTP->Password = pwd->Text;
NMFTP->Connect();
BitBtn1->Enabled = true;
}

NMFTP->Mode(MODE_IMAGE);
NMFTP->Download(spath->Text,dpath->Text);
Application->MessageBox("下载完毕","提示",MB_OK|MB_ICONINFORMATION);

这是我刚写的

13,826

社区成员

发帖
与我相关
我的任务
社区描述
C++ Builder相关内容讨论区
社区管理员
  • 基础类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧