Visual Basic 6 Error - Scripting.FileSystemObject

The reason why you are getting this error is because you don't have a reference to the Microsoft Scripting Runtime library. Follow the below instructions while in your VB6 project:

  1. From the top menu, click on Project > References.
  2. From the list, check the item entitled "Microsoft Scripting Runtime".
  3. Click OK.

This will resolve your immediate error however your code still has some other issues. First off, you forgot to declare the variable inisettings. I am going to assume that you will want to always overwrite the entire file each time you update the INI file so you want to use the method CreateTextFile instead of OpenTextFil.




Post a Comment

0 Comments