I have 2 vbs files.
A.vbs
:
Class test
public a
public b
End Class
B.vbs
:
Dim objShell
Set objShell = Wscript.CreateObject("WScript.Shell")
objShell.Run "C:\Users\shanmugavel.chinnago\Desktop\Test3.vbs"
Dim ins
Set ins = new test 'Here throws "Class not defined: test"
ins.a = 10
ins.b = "SCS"
msgbox ins.a
msgbox ins.b
Now I want to achive this like in B.vbs file. But it throws error while creating instance for the class availble in A.vbs. Any help?