WSH error: ActiveX component can't create object

D

Dave

I've a number of scripts which I have used for a while
for various admin tasks, but now every one including a
line such as
Set xyz = CreateObject("Scripting.FileSystemObject")
fails at that line with the error

Error: ActiveX component can't create
object: 'Scripting.FileSystem.Object'
Code: 800A01AD
Source: Microsoft VBScript runtime error

It is not my scripts that are at fault; that is there is
an error even in a simple script pulled of MSDN like:
Dim fso, fldr
Set fso = CreateObject("Scripting.FileSystemObject")
Set fldr = fso.CreateFolder("C:\MyTest")
Response.Write "Created folder: " & fldr.Name

I've found a few references to this error on Google but
only in relation to asp pages; this is just a script on
the desktop being executed.

Any ideas what is wrong? Presumably some system setting?
Thanks in advance
 
T

Torgeir Bakken \(MVP\)

Dave said:
I've a number of scripts which I have used for a while
for various admin tasks, but now every one including a
line such as
Set xyz = CreateObject("Scripting.FileSystemObject")
fails at that line with the error

Error: ActiveX component can't create
object: 'Scripting.FileSystem.Object'
Code: 800A01AD
Source: Microsoft VBScript runtime error
Hi

Download and re-install WSH 5.6 from here:

http://msdn.microsoft.com/downloads/list/webdev.asp
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top