Results 1 to 9 of 9

Thread: "Scripting.FileSystemObject"

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2000
    Location
    Nitro
    Posts
    633
    I have never seen this type of library before until a member by the name of "Ramdasv" used it. It this new to VB 6 only and how do I find all of its properties and methods?


    Code:
      Dim Fobj
      Set Fobj = CreateObject("Scripting.FileSystemObject")
      Fobj.DeleteFolder "c:\AA"
      Set Fobj = Nothing
    Chemically Formulated As:
    Dr. Nitro

  2. #2
    Lively Member
    Join Date
    Jan 2000
    Posts
    76
    THis is a vbscript feature just see in ur MS-InterDev


  3. #3
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    I have VB6 so I don't know if it is available in the lower versions but reference the 'Microsoft Scripting Runtime' then declare it like so:

    Public fs as New Scripting.FileSystemObject

    then when you type fs. it will give the list of methods

  4. #4
    Member
    Join Date
    May 2000
    Posts
    45
    The scripting library kicks ass

    The fileSystemObject stuff is part of the scripting library and provides access to the file system of the machine in an object fashion. You get file and folder objects, and in the scripting library there's a textstream object for reading and writing files. It's easy to use and much better than the old VB file stuff.

    There's an MS how-to at
    http://support.microsoft.com/support...1/18.ASP<br />

    which should give you everything you need to get started.

    K

    [Edited by kleve on 05-19-2000 at 09:46 AM]

  5. #5
    Fanatic Member
    Join Date
    Mar 2000
    Location
    That posh bit of England known as Buckinghamshire
    Posts
    658
    Yes it is VB6 only. I love it as well, makes file manipulation almost enjoyable.
    Iain, thats with an i by the way!

  6. #6

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2000
    Location
    Nitro
    Posts
    633

    Talking

    Thanks you gentlemen for the information.

    Have a nice day!
    Chemically Formulated As:
    Dr. Nitro

  7. #7
    Lively Member
    Join Date
    Jan 1999
    Location
    India
    Posts
    85
    You can add Microsfot Scripting Runtime "scrrun.dll" reference to your vb project you can use the object browser to find its properties and methods

    Ramdas

  8. #8
    Fanatic Member
    Join Date
    Jan 1999
    Location
    UK
    Posts
    554
    Hi Nitro,

    Have a look here :
    http://msdn.microsoft.com/scripting/

    its the scripting home page

    zaf
    {;->

  9. #9

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2000
    Location
    Nitro
    Posts
    633
    Thanks Zaf!

    Haven't hear from you along time. Cool! Thanks for the information.

    Also, thanks Ramdasv! You got me started with this tread.
    Chemically Formulated As:
    Dr. Nitro

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