com >> Set oFileScripting = CreateObject("Scripting.FileSystemObject")

by Jack » Tue, 04 Apr 2006 00:46:39 GMT

I have an application that uses:
Set oFileScripting = CreateObject("Scripting.FileSystemObject")

To create a file to open and write to. This works fine on all but one
workstation where it errors with an "ActiveX Can't create object" error.

Any idea why this one Win XP, with all updates applied, workstation would
fail on this command?

Jack




com >> Set oFileScripting = CreateObject("Scripting.FileSystemObject")

by Ken Halter » Tue, 04 Apr 2006 02:18:41 GMT






Maybe the user has scripting disabled for security purposes. There's never a
real need for the FSO. VB has had full support for file I/O since day one.

--
Ken Halter - MS-MVP-VB - Please keep all discussions in the groups..
DLL Hell problems? Try ComGuard - http://www.vbsight.com/ComGuard.htm





Similar Threads

1. Error 429 VBA.Interaccion.Createobject("Scripting.FileSystemObject - Excel

2. CreateObject("Scripting.FileSystemObject") fails sometime [multiposted]

3. CreateObject("Scripting.FileSystemObject") fails sometime

4. CreateObject("Scripting.FileSystemObject") Fails on some stations

Hi

I wrote a little VB prog in which I create a "Scripting.FileSystemObject" object
this works perfectly on 99% of our workstations but on some 
the CreateObject command fails????

Any idea what could cause this problem? 
Could it be an outdate dll or ocx file?
How can I troubleshoot this problem?


Dim fs As Object
Set fs = CreateObject("Scripting.FileSystemObject")
..
..


thx in advance
Dave

5. CreateObject("Scripting.FileSystemObject") fails sometime

6. How Do I Do This VB Code In C# - Set Conn = Server.CreateObject("ADODB.Connection")

Set Conn = Server.CreateObject( "ADODB.Connection" )
Conn.Open( "DSN = mydsn; UID = myuserid; PWD = mypassword;" )
sql = "select * from customers"
Set RS = Conn.Execute( sql )

Preferably with a SqlDataAdapter not an OleDbDataAdapter



7. Scripting.FileSystemObject" - VB.Net

8. Scripting.FileSystemObject in hta

What did I do wrong in  a function

       Dim fso, msg
       Set fso = CreateObject("Scripting.FileSystemObject")
I get the message
    An error has occurred in the script on this page
         Activex component cant create object ("Scripting.FileSystemObject"

I was try to validate a folder name

My hta was designed to manipulate files in a directory specified by user.


what should I do?