开发者

ClassFactory cannot supply requested class - WScript.CreateObject ("WScript.Shell")

开发者 https://www.devze.com 2022-12-16 00:06 出处:网络
I g开发者_StackOverflow社区et the error \"xpto.vbs(2, 1) ClassFactory cannot supply requested class\" when I run the code line \"WScript.CreateObject(\"WScript.Shell\")\" on the folowing code:

I g开发者_StackOverflow社区et the error "xpto.vbs(2, 1) ClassFactory cannot supply requested class" when I run the code line "WScript.CreateObject("WScript.Shell")" on the folowing code:

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

I have version 5.1 of vbscript on a windows2000 o.s.

Can someone help me?


I would install Windows Script 5.6:

Windows Script 5.6 for Windows XP and Windows 2000

0

精彩评论

暂无评论...
验证码 换一张
取 消