Correct Reference Library for FileSystemObject

Question:
I am having problems calling the FileSytemObject from VB6. “Dim x as New FileSystemObject” does not work. I have tried the Active Server Pages Obj lib and ADO 2.0 lib. “FileSystem” is available.

Answer:
Set a reference to the FileSystemObjects shipped with the Microsoft Scripting Runtime and you will be set.

Share the Post:
Share on facebook
Share on twitter
Share on linkedin

Related Posts