其实也是fso。
这个是要一定权限的。

解决方案 »

  1.   

    怎么放开权限,我刚试了: var fso = new ActiveXObject("Scripting.FileSystemObject")
      提示Automation服务器不能创建对象。
    谢谢!
      

  2.   

    <script>
    var str = "你要写入的字符串";var mm = window.open("", "", "width=100, height=100");
    mm.document.write(str);
    mm.document.execCommand('Saveas', false, 'c:\\test.txt');
    mm.close();
    </script>
      

  3.   

    用高度为0的iframe,再
    mm.document.write(str);
    mm.document.execCommand('Saveas', false, 'c:\\test.txt');
    mm.close();
      

  4.   

    I also need the solution! up!
      

  5.   

    I also need the solution! up!
      

  6.   

    最后只好存为html的格式了,感谢 uxeir(磕打小子) 
    谢谢大家