Error: ActiveX Component Can't Create Object Scripting.FileSystemObject

后端 未结 3 976
小蘑菇
小蘑菇 2020-12-06 06:56

I have a simple vbs-file on my drive c: with following content:

Set objShell = CreateObject(\"Scripting.FileSystemObject\")

When I\'m tryin

相关标签:
3条回答
  • 2020-12-06 07:25

    If re-registering scrrun.dll doesn't fix it, you might have to re-register a lot of other dependencies. The easiest way to do that is with MS Fixit 50123: http://go.microsoft.com/?linkid=9666880 Run that, then try your FSO call again. This is the only thing that worked for me on a couple client computers that had various fake AV programs and reg cleaners.

    0 讨论(0)
  • 2020-12-06 07:44

    In my case ProgId attribute on the COM component class was misspelled: [ProgId("XXX")]

    0 讨论(0)
  • 2020-12-06 07:45

    Assuming you are logged in as Admin, please have a look in registry for Scripting.FileSystemObject under HKCR.

    If you can not find this PROGID then you are missing the required files or the component is disabled (not registered).

    Scripting.FileSystemObject is implemented in scrrun.dll.

    0 讨论(0)
提交回复
热议问题