Results 1 to 3 of 3

Thread: Having trouble with FileSystemObject

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jun 2000
    Posts
    20

    Unhappy

    I've been trying to use the FileSystemObject to do things like move and delete files but when I do this:

    Dim fso As New FileSystemObject

    and then try to use it, I get a compile error and vb says that it didn't recognize the new user-defined object.

    Can anyone help?

    DoubleDown
    ----------------------------------------
    "Who's the big winner here tonight? ...
    Mikey!! That's who. Mikeys the big winner"


  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    You either have to add a reference to the Scripting RunTime thing or declare it like so

    Set fs=CreateObject("Scripting.FileSystemObject")

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Jun 2000
    Posts
    20

    Cool Thanks that helped

    I just had to select a check box in the project dialog box to include the scripting run-time dll.

    DoubleDown

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