Results 1 to 5 of 5

Thread: What library does filesystemobject reside in?

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Jan 2004
    Location
    Southern California
    Posts
    5,034

    What library does filesystemobject reside in?

    I am trying to use the filesystemobject which I haven't used for quite sometime now. I forget what library this object resides in. Is it under "references" or "components" and what is the name of the object library?

    Thanks,

    Blake

  2. #2
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: What library does filesystemobject reside in?

    References->Microsoft Scripting Runtime.

  3. #3
    Frenzied Member sciguyryan's Avatar
    Join Date
    Sep 2003
    Location
    Wales
    Posts
    1,763

    Re: What library does filesystemobject reside in?

    its in References >> Microsoft Scripting Runtime (And incase you were wondering its in a dll file named Scrrun.Dll)


    Or, you can use the CreatObject function like so:

    VB Code:
    1. Dim FSO As Object
    2. Set FSO = CreateObject("Scripting.FileSystemObject")

    Cheers,


    RyanJ
    My Blog.

    Ryan Jones.

  4. #4
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: What library does filesystemobject reside in?

    Quote Originally Posted by sciguyryan
    Or, you can use the CreatObject function like so:

    VB Code:
    1. Dim FSO As Object
    2. Set FSO = CreateObject("Scripting.FileSystemObject")
    Indeed you can, but it is slower and also you don't get any of the IntelliSense code menus in the IDE, because the link is made at runtime.

  5. #5

    Thread Starter
    PowerPoster
    Join Date
    Jan 2004
    Location
    Southern California
    Posts
    5,034

    Re: What library does filesystemobject reside in?

    Thank bro...I appreciate it!

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