Search code examples
vbscriptcreateobject

Reverse CreateObject in VBScript


I have an old vbscript the runs the command, foo = CreateObject(x.y). I want to run this script on another computer (which it doesn't run on now btw) but I don't know which dll's I should register, or what else I should do, to run the CreateObject command.

How can I figure out what dll's I need to copy into the new computer, and do I need to register them, what else should be done?

Or maybe they are OCX's or something?

Cheers.


Solution

  • You should start looking at your machine registry for your HKEY_CLASSES_ROOT\x.y\CLSID key.

    With that {GUID}, go to HKEY_CLASSES_ROOT\CLSID\{GUID}\InprocServer32 key