如果你说的web方式,那你的操作不成了黑客

解决方案 »

  1.   

    <script language="javascript">
    function URLDownloadToFile(sURL, sFilePath)
    {
      var adTypeBinary  = 1;
      var adSaveCreateOverWrite = 2;  var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
      xmlhttp.open("GET",sURL,false);
      xmlhttp.send();
      if (xmlhttp.status != 200)
      {
               alert("something is wrong:" + xmlhttp.statusText);
      }
      else
      {
        var stream = new ActiveXObject("ADODB.Stream");
        stream.type = adTypeBinary;
        stream.open();
        stream.write(xmlhttp.responseBody);
        stream.saveToFile(sFilePath, adSaveCreateOverWrite);
        stream.close();
        stream = null;
      }  xmlhttp = null;
    }
    URLDownloadToFile("http://staff.develop.com/aarons/bits/xml-wellformed.zip",
    "c:/temp/ml-wellformed.zip");</script>
      

  2.   

    问题解决了,WebClient就可以指定.昏!
    散分.