请求帮助:
怎样下载类似 http://www.abc.cn/down.asp?name=computer.doc这样的文件,并把下载的文件保存在c:\, 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.   

    非常感谢 hongqi162 热心解答,运行后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>请继续支招.谢谢!