请求帮助:
怎样下载类似 http://www.abc.cn/down.asp?name=computer.doc这样的文件,delphi代码怎样写.

解决方案 »

  1.   

    var
      SourceFile,DestFile:string;
    begin
      SourceFile:='http://www.abc.cn/down.asp?name=computer.doc';
      DestFile:='c:\computer.doc';
      UrlDownloadToFile(nil, PChar(SourceFile), PChar(DestFile), 0, nil)
    end;
      

  2.   

    uses UrlMon;=================================
    杀软件可能要报警!( 下载者 ?!)
    =================================
      

  3.   

    非常感谢 hongqi162 和 ehuccc 热心解答,运行后c:\computer.doc出现以下内容,但这不是computer.doc文件的内容,需要的是把该文件直接拉出来放在C:\<meta http-equiv="refresh" content="2;URL=http://www.abc.cn/<br><center><a href=http://www.abc.cn><font size=3 color=red>abc大厅</font></a></center>请继续支招.谢谢!
      

  4.   

    uses
     urlmonURLDownloadToFile(nil,'http://www.abc.cn/down.asp?name=computer.doc',''c:\computer.doc'',0, NiL);
      

  5.   

    更正 :''c:\computer.doc'' 多了两个单引号.URLDownloadToFile(nil,'http://www.abc.cn/down.asp?name=computer.doc','c:\computer.doc',0, NiL);
      

  6.   

    谢谢楼上zhangqiwen,还是不行,还是只出现了以下的:
    <meta http-equiv="refresh" content="2;URL=http://www.abc.cn/<br/><center><a href=http://www.abc.cn><font size=3 color=red>abc大厅</font></a></center>
      

  7.   

    有一个HTTPGET的控件可以搞定.
      

  8.   

    谢谢ZyxIp(绝望中...) ,请指点,代码怎样写?