P poety Unregistered / Unconfirmed GUEST, unregistred user! 2004-02-01 #1 如何实现从网站下载一个文件到本地 如下载http://www.abcd.com/123.zip到本地目录 谢谢!
F fei_l Unregistered / Unconfirmed GUEST, unregistred user! 2004-02-01 #2 使用NMHTTP元件的下载例子: NMHTTP1.InputFileMode := true; NMHTTP1.OutputFileMode := true; NMHTTP1.ReportLevel := Status_Basic; NMHTTP1.Body:='c:/123.zip'; // 本地文件名 NMHTTP1.Get('http://www.abcd.com/123.zip'); // 远程文件名
使用NMHTTP元件的下载例子: NMHTTP1.InputFileMode := true; NMHTTP1.OutputFileMode := true; NMHTTP1.ReportLevel := Status_Basic; NMHTTP1.Body:='c:/123.zip'; // 本地文件名 NMHTTP1.Get('http://www.abcd.com/123.zip'); // 远程文件名
P poety Unregistered / Unconfirmed GUEST, unregistred user! 2004-02-01 #3 to fei_l, NMHTTP在哪里啊?我用delphi7
F fei_l Unregistered / Unconfirmed GUEST, unregistred user! 2004-02-01 #4 Delphi 6带的 FastNet 组件 Delphi 7好象没有了
P poety Unregistered / Unconfirmed GUEST, unregistred user! 2004-02-01 #5 啊啊啊!! 那怎么办啊? 能在d7下用吗? 或者d7下面用indy的那一个控件? 谢谢!!!
大 大富翁WW Unregistered / Unconfirmed GUEST, unregistred user! 2004-02-01 #6 uses UrlMon; procedure TForm1.Button1Click(Sender: TObject); begin if S_OK = UrlDownloadToFile(nil,'http://images.163.com/images/sms/65x50.gif', 'd://1.gif',0, nil) then ShowMessage('Ok') else ShowMessage('Fail'); end;
uses UrlMon; procedure TForm1.Button1Click(Sender: TObject); begin if S_OK = UrlDownloadToFile(nil,'http://images.163.com/images/sms/65x50.gif', 'd://1.gif',0, nil) then ShowMessage('Ok') else ShowMessage('Fail'); end;