Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - VbScript CreatObject error

Reply
 
Old 06-16-2009   #1 (permalink)
Eitan Shapir


 
 

VbScript CreatObject error

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

My System SpecsSystem Spec
Old 06-16-2009   #2 (permalink)
T Lavedas


 
 

Re: VbScript CreatObject error

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
***********
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Zip error using VBSCRIPT Error:Object not a collection VB Script
vbscript.dll error VB Script
WMI VBSCRIPT error 0x80041001 VB Script
vbscript error Vista installation & setup
error 2738 vbscript Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46