Error when running vbscript from XYplorer

Things you’d like to miss in the future...
Forum rules
You might want to read this if you're looking for priority service

:info: Please Include The Following Information
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: Use Your Profile Or Signature
We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
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: 15016
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: 15016
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