Results 1 to 4 of 4

Thread: fso and run time error '429'

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2001
    Location
    denver-usa
    Posts
    4

    Angry

    Please help,

    I am using win 95.
    In my code I Create a file using:
    Dim fs, a As Object

    Set fs = CreateObject("Scripting.FileSystemObject")
    Set a = fs.createtextfile(\\servername\folder\filename.txt, True)
    a.writeline Param
    a.Close

    when I try to execute, I have this error:

    Run time error'429'
    Active X component can't crate object

    Anybody know how to solve this problem?
    If I need to install new dll, what file should I install, and where should I put?

    Thank you,

    dummy

  2. #2
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538
    Where are you using this, in a web page, a dll, a vb app ?
    If it's the first one, it could be your internet settings are too high - in IE, tools/view > internet options > security.

    If not, you can use the following :
    Code:
    Open \\servername\folder\filename.txt for output as #1
       'some code
    Close #1
    If the file isn't found, this creates the text file for you so you shouldn't need the FSO object.

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

  3. #3

    Thread Starter
    New Member
    Join Date
    Apr 2001
    Location
    denver-usa
    Posts
    4

    Red face

    but when I try:

    Open //servername/folder/filename.txt For Output As #1
    Write #1, "This is the parameter";
    Close #1

    I get another message error:
    Error '52' Bad File name or number

    What should I do?

  4. #4
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538
    That would be my fault [slow fading whistle ...]
    Place this in double quotes :

    Open "//servername/folder/filename.txt" For Output As #1

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width