[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3342
  • Last Modified:

"Library not registered" error when executing command "Set fs = createobject("Scripting.FileSystemObject")"... please help

I have a .VBS script file that executes the command:

Set fs = createobject("Scripting.FileSystemObject")

A guy at work just got a new laptop computer and when the script runs, it errors out on the command.  The error it gives is:

Library not registered

The only difference between his computer and all of the others at my work is that his has Windows XP SP2.  Everyone else has XP SP1 or 2000 (or NT4).

What is wrong?  I tried installing Windows Script v5.6 for XP but that didn't solve the problem

Thanks
0
dougshepard
Asked:
dougshepard
  • 3
  • 3
  • 2
  • +1
1 Solution
 
SRigneyCommented:
Scripting.FileSystemObject is scrrun.dll in WINNT\System32

Make sure he has it and it is registered.

0
 
muzzy2003Commented:
Does he have Symantec anti-virus? Have heard that can block calls to scrrun objects.
0
 
dougshepardAuthor Commented:
I will try this once I have access to his computer again, but when I unregister that DLL file on my computer (which worked fine before) I get the following error:

Activex component can't create object: 'Scripting.FileSystemObject'

Not the error I gave above that the other computer is getting...

So I'm wondering if the DLL isn't already registered and the problem lies somewhere else...

I'll post again after I try it... any other ideas would be greatly appreciated in the mean time.

Thanks
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
muzzy2003Commented:
Try unregistering C:\WINNT\SYSTEM32\vbscript.dll on your computer - does that give you the right error message?
0
 
dougshepardAuthor Commented:
Nope, then I get this error:

Can't find script engine "VBScript" for script "whatever.vbs".

Thanks
0
 
muzzy2003Commented:
Nope, OK. Found one link that suggested registering this file might be the key, but obvioulsy not.
0
 
dougshepardAuthor Commented:
Thanks...

damn Crystal Reports !
0
 
JohnBPriceCommented:
Glad to help, I had a similar problem where Crystal messed up registry security & I couldn't upgrade Norton AntiVirus.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 3
  • 3
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now