Using the VB6 IDE, select Project, Links, then select the Microsoft Scripting Runtime link.
If you did not know what the link was called, you can use the browse button of the browse dialog box to select the / system 32 / scrrun.dll file.
With the link selected, close the Links dialog box, then open Object Browser (View menu). Change the drop-down list to the most likely candidate, being "Scripting". This will open the library classes, one of which is "FileSystemObject". Therefore, you will find that the line required for CreateObject is "Scripting.FileSystemObject".
If you don't know the link name or file name, but you know the class name, then you can search the registry for "FileSystemObject" and it should soon be found that you need "Scripting.FileSystemObject" for the full name.
onedaywhen Dec 09 '08 at 10:55 2008-12-09 10:55
source share