On Jun 16, 4:38*am, Eitan Shapir
<EitanSha...@xxxxxx> wrote:
Quote:
> Hi,
> I created Com Object and registered it.
> After registration I deleted the dll contains the Com Object.
> Then, calling the folowing vbscript:
> set obj = CreateObject("MyNamespace.MyClassName")
> raise the error message "The System cannot find the file specified"
>
> How can I retrieved the filename (the dll that I deleted)???
> Thanks, Eitan
Try replacing your class name (skey) into the following example, which
should then provide the name of the missing file ...
skey = "HKEY_CLASSES_ROOT\WScript.Network\"
with createobject("wscript.shell")
sCLSID = .regread(skey & "CLSID\")
sFileName = .regread("HKLM\Software\Classes\CLSID\" _
& sCLSID & "\InProcServer32\")
end with
wsh.echo sFileName
Tom Lavedas
***********