FileSystemObject in Visual Basic 6.0

April 11, 2008

When you tried to declare Dim fso as FileSystemObject in your code and you get an error, most probably the only thing you need to do is go to Project > References. At the list of the available references, scroll down to ‘Microsoft Scripting Runtime (scrrun.dll)’ make sure it is checked (right symbol at the checkbox), and click OK.

Your code should be able to use FileSystemObject by now.

Again, hope it helps somebody.

Entry Filed under: Technology. .

4 Comments Add your own

  • 1. maximo  |  July 19, 2008 at 3:07 am

    try to use:
    dim fso as new filesystemobject

    - or -

    dim fso as filesystemobject

    and then

    set fso=new filesystemobject

    of course the ‘Microsoft Scripting Runtime’ has to be checked in the reference

    Reply
  • 2. imin83  |  July 23, 2008 at 7:49 am

    hi maximo, thanx for the suggestion

    Reply
  • 3. MUHAYIMANA CLEMENT  |  January 8, 2009 at 8:40 am

    I was really helped by this advice! Keep it up I appreciated so much!

    Reply
  • 4. Alibi  |  February 11, 2009 at 6:20 am

    What for do we use FileSystemObject

    Reply

Leave a Comment

Required

Required, hidden

Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Trackback this post  |  Subscribe to the comments via RSS Feed


Calendar

April 2008
M T W T F S S
« Mar   Jul »
 123456
78910111213
14151617181920
21222324252627
282930  

Most Recent Posts