Error when running vbscript from XYplorer

Things you’d like to miss in the future...
Post Reply
pdanese
Posts: 7
Joined: 08 Mar 2019 03:14

Error when running vbscript from XYplorer

Post 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.

highend
Posts: 13327
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Error when running vbscript from XYplorer

Post 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>""";
One of my scripts helped you out? Please donate via Paypal

pdanese
Posts: 7
Joined: 08 Mar 2019 03:14

Re: Error when running vbscript from XYplorer

Post 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.

highend
Posts: 13327
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Error when running vbscript from XYplorer

Post 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>""";
One of my scripts helped you out? Please donate via Paypal

pdanese
Posts: 7
Joined: 08 Mar 2019 03:14

Re: Error when running vbscript from XYplorer

Post by pdanese »

Thank you. That works perfectly.

Post Reply