Welcome Guest! To enable all features please Login or Register.



Go to last post Go to first unread
#1 Posted : Tuesday, June 2, 2020 10:17:30 PM(UTC)

Rank: Member


Groups: Approved
Joined: 4/9/2020(UTC)
Posts: 22

Thanks: 8 times
Hi all,
when I run the example script "Show selected files in File Explorer",It gives errors bellow:



Error: 无法将类型为“System.__ComObject”的 COM 对象强制转换为接口类型“SHDocVw.InternetExplorer”。此操作失败的原因是对 IID 为“{D30C1661-CDAF-11D0-8A3E-00C04FC9E26E}”的接口的 COM 组件调用 QueryInterface 因以下错误而失败: 不支持此接口 (异常来自 HRESULT:0x80004002 (E_NOINTERFACE))。
at Script Document:3:16 -> var files = sp.GetSelectedFilesInExplorer(action.Window.HWnd);


the system is win10 & win10 explorer

is anybody knows how to solve this problem,
thank you.
#2 Posted : Wednesday, June 3, 2020 8:59:49 AM(UTC)

Rank: Administration


Groups: Translators, Members, Administrators
Joined: 1/11/2018(UTC)
Posts: 667
United States

Thanks: 13 times
Was thanked: 149 time(s) in 130 post(s)
Not sure, it works fine for me on Win10 & Win10 Explorer. That code is specifically creating a COM object through Windows, so there's not much I can do about it.

The error seems to indicate the COM interface doesn't exist, so you might need to repair system files, and make sure that the COM interface is registered on your system.

This isn't something I will be able to help much with since the source of the error is outside of S+ itself. You could try checking any local security settings or run S+ as admin and see if it works.
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.