
Library not registered- WSH error
Re: Library not registered- WSH errorI also get that error code on all NT
machines on a particular network. The error occurs on the first line:
Set WshShell = WScript.CreateObject("WScript.Shell")
I thought at first I'd screwed up the installation by not being logged on as
administrator, but I've since tested this on other machines, re-installed
wsh (using ste51en.exe); installed logged as admin, restarted as admin, and
I still get the same errors. I think it's related to the error when users
(not admin) log on which states that advpack cannot register wshom.ocx, but
I can't see how to install such that it can [register the activeX file].
All Win9x machines on the same network are fine, and NT machines on my own
network are also fine.
Any ideas anyone?
Mike,
Sorry about that,
Pls read as line no as 131 in place of 151.
Thanks,
anil
This can't be the correct line for the error (131 vs 151?). Char 5 of
the line you posted is the middle of the variable name intDoIt...
Sound like it's on the CreateObject for WScript.Shell. Try a re-install
of WSH.
--
Michael Harris
MVP Scripting
Hi!
I have installed WSh 5.1 on Win NT 4.0 SP5. I am trying to run one of my
script. It is not running the script, comes out saying
131 line
Char 5
Library not registered
code: 8002801D
my line 151 is,
intDoIt = WSHShell.Popup(L_Welcome_MsgBox_Message_Text,
0,
L_Welcome_MsgBox_Title_Text,
vbOKCancel + vbInformation );
How to correct this problem,
Pls. discuss..
Thanks,