Hello.
I get 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?