Page 1 of 1

Error when running vbscript from XYplorer

Posted: 08 Mar 2019 03:24
by pdanese
Hi,
I am not sure if this is the appropriate forum to ask/report this. If not, please advise.

I am running a trial version of XYplorer (19.70.0100) on Windows 10 pro version 1809.

I have a vbscript that I run by double-clicking on it. The script manipulates some Excel files.

If I use the traditional Windows explorer, I can double click on my script and everything runs.
If I double-click on the script in XYplorer, I get the following error:
ActiveX component can't create object: 'Excel.Application'
Code: 800A01AD
VBscript runtime error
Is there a work-around for this issue? I searched the forum for "ActiveX component can't create object" but I am not sure how relevant the results were.

Thank you.

Re: Error when running vbscript from XYplorer

Posted: 08 Mar 2019 04:29
by highend
What happens when you select that .vbs file and then paste this into
the address bar (and execute it with the {ENTER} key afterwards)?

run """C:\windows\sysnative\wscript.exe"" ""<curitem>""";

Re: Error when running vbscript from XYplorer

Posted: 08 Mar 2019 14:21
by pdanese
Hi,

Thank you. The script runs correctly if I use your suggested command and follow your instructions.

Is there any way to embed that "function" into XYplorer?

Aside from this issue, I think this file manager is great.

Re: Error when running vbscript from XYplorer

Posted: 08 Mar 2019 15:02
by highend
You could use a CFA = Custom file association

Menu - Tools - Customize File Associations...

And the necessary entry would be:
"VBS" vbs>::run """C:\windows\sysnative\wscript.exe"" ""<curitem>""";

Re: Error when running vbscript from XYplorer

Posted: 10 Mar 2019 01:27
by pdanese
Thank you. That works perfectly.