IconResource from 64-bit program executable not usable by XYplorer?

Things you’d like to miss in the future...
Forum rules
:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:

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

:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:
elqasar2
Posts: 255
Joined: 27 Oct 2017 14:04
Location: Win 11, 100% scaling, v27.20.0700

Re: IconResource from 64-bit program executable not usable by XYplorer?

Post by elqasar2 »

admin wrote: 25 Aug 2022 09:19 The problem must be somewhere else.
I agree. I wish there was a way I could query XYplorer to say: where are you getting (or not able to get) the icon from for this folder on this system.

Everything is working as expected for all other folders (even those with other customized icons). It's just this one (the OneDrive folder) that XYplorer is unable to retrieve the icon for no matter what I do.

admin
Site Admin
Posts: 66619
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: IconResource from 64-bit program executable not usable by XYplorer?

Post by admin »

Could it be a custom file icon?

elqasar2
Posts: 255
Joined: 27 Oct 2017 14:04
Location: Win 11, 100% scaling, v27.20.0700

Re: IconResource from 64-bit program executable not usable by XYplorer?

Post by elqasar2 »

Just in case it helps, I ran the debug command I found in another thread.

sysicons "D:\OneDrive", 1, 1;

Running it on a PC where the OneDrive folder icon displays correctly, I get this:
sysimage-working.png
And running it on the problem PC where XYplorer can't display the folder icon, I get this:
sysimage-problem.png
admin wrote: 25 Aug 2022 17:44 Could it be a custom file icon?
I really haven't tried to do anything clever or fancy. I'm just trying to use OneDrive and have it's default, normal, uncustomized, folder icon displayed.
To see the attached files, you need to log into the forum.
Last edited by elqasar2 on 25 Aug 2022 17:54, edited 1 time in total.

admin
Site Admin
Posts: 66619
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: IconResource from 64-bit program executable not usable by XYplorer?

Post by admin »

Wow, extreme. :shock: I couldn't even make that on purpose.

admin
Site Admin
Posts: 66619
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: IconResource from 64-bit program executable not usable by XYplorer?

Post by admin »

Try this:

Code: Select all

exist "D:\OneDrive";

elqasar2
Posts: 255
Joined: 27 Oct 2017 14:04
Location: Win 11, 100% scaling, v27.20.0700

Re: IconResource from 64-bit program executable not usable by XYplorer?

Post by elqasar2 »

exist.png
To see the attached files, you need to log into the forum.

admin
Site Admin
Posts: 66619
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: IconResource from 64-bit program executable not usable by XYplorer?

Post by admin »

Well, it does not exist!

elqasar2
Posts: 255
Joined: 27 Oct 2017 14:04
Location: Win 11, 100% scaling, v27.20.0700

Re: IconResource from 64-bit program executable not usable by XYplorer?

Post by elqasar2 »

Sorry, I entered the wrong path on the non-working PC. When comparing to the working PC, I was using the same path on both. :oops:

Let me try again. Give me a minute...

elqasar2
Posts: 255
Joined: 27 Oct 2017 14:04
Location: Win 11, 100% scaling, v27.20.0700

Re: IconResource from 64-bit program executable not usable by XYplorer?

Post by elqasar2 »

I had forgotten to change the 'D' to a 'T' when running the scripts on the non-working PC, as the OneDrive location is on a different drive. Sorry again for the confusion. :oops:

Anyway, the folder does exist, and here is the sysicons script run on the correct location now:
sysimage-problem2.png
To see the attached files, you need to log into the forum.

admin
Site Admin
Posts: 66619
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: IconResource from 64-bit program executable not usable by XYplorer?

Post by admin »

Looks okay. And you are sure that custom file icons are turned off? (Configuration | General | Refresh, Icons, History | Icons | Enable custom file icons)

elqasar2
Posts: 255
Joined: 27 Oct 2017 14:04
Location: Win 11, 100% scaling, v27.20.0700

Re: IconResource from 64-bit program executable not usable by XYplorer?

Post by elqasar2 »

admin wrote: 25 Aug 2022 18:13 Looks okay. And you are sure that custom file icons are turned off? (Configuration | General | Refresh, Icons, History | Icons | Enable custom file icons)
Aha! :appl:

That option was enabled on both PCs, but on this non-working one I actually had an entry in XYplorer's Custom File Icons list, which was pointing to a location in %LOCALAPPDATA%\Microsoft\OneDrive, whereas OneDrive's executable for me happens to be in 'C:\Program Files\OneDrive'. I have no memory of ever creating that entry -- I must have done that years ago for some reason!

Yay, problem solved. :beer:

admin
Site Admin
Posts: 66619
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: IconResource from 64-bit program executable not usable by XYplorer?

Post by admin »

Alter... :roll:

That's German and means something like "Dude..."

Post Reply