FileSystemObject in Visual Basic 6.0
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.
Categories: Technology
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
hi maximo, thanx for the suggestion
I was really helped by this advice! Keep it up I appreciated so much!
What for do we use FileSystemObject