用另一种办法,在项目菜单中,添加引用,在对话框中单击“浏览”,打开winnt\system32\scrrun.dll,确定添加。这之后可以用dim fso as new Scripting.FileSystemObject创建了.也可以试试FileSystemObjectClass.

解决方案 »

  1.   

    忘了说,我的那段代码是在客户端运行的,需要添加引用吗?
    <script language=VBscript>
        function print_onclick
      Dim objfs,objprinter
    set objfs=CreateObject("Scripting.FileSystemObject")
        end function
    </script>
      

  2.   

    如果是客户端运行就是客户端的事,不过用FSO操控客户端的文件不常用。
      

  3.   

    C#写web程序还是不用fso吧 ,服务器很少有支持的了 我指虚拟主机
      

  4.   

    to :bluemiles(晨曦之星)那用什么?