【问题标题】:ClassFactory cannot supply requested class - WScript.CreateObject ("WScript.Shell")ClassFactory 无法提供请求的类 - WScript.CreateObject ("WScript.Shell")
【发布时间】:2010-01-05 16:36:33
【问题描述】:

当我在以下代码上运行代码行“WScript.CreateObject("WScript.Shell")”时,出现错误“xpto.vbs(2, 1) ClassFactory cannot supply requested class”:

Dim oShell
Set oShell = WScript.CreateObject ("WScript.Shell")
oShell.run "cmd /K CD C:\ & Dir"
Set oShell = Nothing

我在 windows2000 操作系统上安装了 vbscript 5.1 版

有人可以帮我吗?

【问题讨论】:

    标签: vbscript


    【解决方案1】:

    我会安装 Windows Script 5.6:

    Windows Script 5.6 for Windows XP and Windows 2000

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-05-12
      • 1970-01-01
      • 2023-03-28
      • 2019-08-17
      • 1970-01-01
      • 2017-09-21
      相关资源
      最近更新 更多