Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


"Library not registered" from Wscript.Shell

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,52524
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> "Library not registered" from Wscript.Shell
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 "Library not registered" from Wscript.Shell - 10/8/2007 3:07:57 AM   
  jbellis

 

Posts: 1
Score: 0
Joined: 10/8/2007
Status: offline
Here is the entire script:

CreateObject("Wscript.Shell").Run """" & WScript.Arguments(0) & """", 0, False

(It's just to run a .bat file w/o a console window.)

On my machine it works fine.  On some machines though it gives

Error: Library not registered
Code: 8002801D

Most of what google turns up seems to be about IIS which is not relevant here.

I did find one suggestion to try

regsvr32 c:\windows\system32\wshom.ocx

but that does not seem to be the problem.  (When I unregister that on my machine, I get a different error -- ActiveX component can't create object: Wscript.shell.)

Any ideas?
 
 
Post #: 1
 
 RE: "Library not registered" from Wscript.Shell - 10/8/2007 3:20:04 AM   
  dm_4ever


Posts: 2414
Score: 38
Joined: 6/29/2006
From: Orange County, California
Status: offline
Try re-installing WSH.
http://www.microsoft.com/downloads/details.aspx?FamilyID=C717D943-7E4B-4622-86EB-95A22B832CAA&displaylang=en

_____________________________

dm_4ever

My philosophy: K.I.S.S - Keep It Simple Stupid
Read Me: http://www.visualbasicscript.com/m_24727/tm.htm
Frequently Asked Stuff: http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to jbellis)
 
 
Post #: 2
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> "Library not registered" from Wscript.Shell Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts