Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Library not registered??

Status
Not open for further replies.

ckeener

Programmer
Dec 2, 2003
53
US
I am trying to run a vbs script on a Windows NT machine and it tells me that "The library is not registered". I have installed the latest version of the WSH 5.6 for NT. Has anyone run into something like this? (The same script runs on a Windows XP machine)

Line 18
Char 3

This is the code:

Dim FSO
Set FSO = wscript.CreateObject("wScript.shell")

Select Case day(now)
Case "15"
FSO.run "F:\DAD\MLTMAINT\FINNEEDA.BAT"
case "16"
FSO.run "F:\DAD\MLTMAINT\NFNEEDA.BAT"
case "17"
FSO.run "F:\DAD\MLTMAINT\FINNEEDB.BAT"
case "18"
FSO.run "F:\DAD\MLTMAINT\NFNEEDB.BAT"
case "19"
FSO.run "F:\DAD\MLTMAINT\FINNEEDA.BAT"
case "20"
FSO.run "F:\DAD\MLTMAINT\NFNEEDA.BAT"
case "21"
FSO.run "F:\DAD\MLTMAINT\FINNEEDB.BAT"
case "22"
FSO.run "F:\DAD\MLTMAINT\NFNEEDB.BAT"
case "23"
FSO.run "F:\DAD\MLTMAINT\FINNEEDA.BAT"
case "24"
FSO.run "F:\DAD\MLTMAINT\NFNEEDA.BAT"
end select

Set FSO = Nothing
 
Need to find out which library it means.

you can register it like so:

using RegSvr32.Exe, a utility program that ships with Visual Basic and allows you to register DLL's and other files into the system registry.

Type the following command into the Run dialog, replacing <Path To Windows\System(32)> with the full path to your Windows\System folder:

RegSvr32.Exe <Path To Windows\System(32)>\MSSTDFMT.DLL
i.e.
RegSvr32.Exe c:\Winnt\system32\xxxxxxxx.dll
RegSvr32.Exe c:\BarcodeONE-UPC\BarcodeONE.dll
---------------------

Or upgrade the NT box to XP, its 8 years old already.



DougP, MCP, A+
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top