Announcement

Collapse
No announcement yet.

Cannot create FileSystemObject ?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Cannot create FileSystemObject ?

    Hi guys -
    although I also am an enthusiastic user of Homeseer this particular problem is not popping up in a homeseer script but a Visual Studio 6 Visual basic Macro. But I am hoping to VB gurus here might be able to help me anyway:

    I have a line of code that says:
    Set fso = CreateObject ("Scripting.FileSystemObject")

    And when executed, Visual Studio tells me:
    ActiveX component cannot create object 'Scripting.FileSystemObject'

    I have tried what has been suggested in the past like
    - install Windows Script Debugger - succeeded
    - install Windows Script 5.5 succeeded (v5.6 doesn't install on XP)
    - Start>Run>regsvr32 scrrun.dll succeeded
    - Start>Run>regsvr32 \windows\system32\msscript.ocx succeeded

    Am I overlooking something ?
    I should mention this is on a Win XP Home Edition, fairly new box (and hence unmolested registry etc.)

    Any thoughts ?
    Thanks in advance !

    ----------------------------
    Robert's Audrey pages
    http://www.canoma.com/audrey
    http://www.canoma.com/audrey/controlpanels

    #2
    In your VB project choose the path Project > References. This brings up the references dialog. Scroll down and check "Microsoft Scripting Runtime" This should fix you up.

    -Rupp
    💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

    Comment


      #3
      mmhh. I don't run this from VB but from Visual C++ IDE - and I cant find a place in the menus or options dialogs that lets me set anything like that up for my VB scripts.

      Is there something I can put into the VB script itself to kick it into referencing the right thing ?

      Thanks

      ----------------------------
      Robert's Audrey pages
      http://www.canoma.com/audrey
      http://www.canoma.com/audrey/controlpanels

      Comment


        #4
        Just figured out what the problem was - just in case anybody else has it:

        I needed to install Service Pack 5 for Visual Studio 6

        Everything works fine now.

        ----------------------------
        Robert's Audrey pages
        http://www.canoma.com/audrey
        http://www.canoma.com/audrey/controlpanels

        Comment

        Working...
        X