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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ActiveX Component can't create object

Status
Not open for further replies.
Nov 29, 2001
72
US
The following script statement:

set fso = CreateObject("Scripting.FileSystemObject")

gives the following error:

ActiveX Component can't create object 'Scripting.FileSystemObject'

This used to work and now it doesn't. What act of stupidity have I committed here?
 
Is it SCRRUN.DLL still registered? Have you just intalled, changed, messed with Norton Anti-Virus (or other) that can block scripts unless told otherwise? Generate Forms/Controls Resizing/Tabbing Class
Compare Code (Text)
Generate Sort Class in VB or VBScript
 
What environment are you running this VBScript? If it's ASP, then it's probably a permissions issue. Head over to the ASP forum and search on your error description. There are about a gazillion threads that discuss it. Jon Hawkins
 
If this is server side code i.e. ASP then you need to use

Set fso = Server.CreateObject("Scripting.FileSystemObject")


Codefish
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top