[fixed in 24.50.0204] Custom File Icons not working on all drives
Forum rules
READ THIS AND DO IT!!!
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%).
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.
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
READ THIS AND DO IT!!!
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%).
-
daniel_m
- Posts: 232
- Joined: 11 Apr 2010 11:47
- Location: Windows 10 Pro 22H2, scaling 100%
[fixed in 24.50.0204] Custom File Icons not working on all drives
I love the Custom File Icons feature for empty folders (*\ /e><xy> /5). For some reason, it only works on two of my local drives, but not on three other local drives and one network drive.
A test with "::fresh;" or using a custom icon didn't make a difference.
Is there anything else I can do to debug this behaviour?
A test with "::fresh;" or using a custom icon didn't make a difference.
Is there anything else I can do to debug this behaviour?
Last edited by daniel_m on 21 Jun 2023 22:52, edited 1 time in total.
XYplorer x64 (often the latest beta), Windows 10 Pro 22H2, 3840x2160 scaling 100%
-
jupe
- Posts: 3462
- Joined: 20 Oct 2017 21:14
- Location: Win10 22H2 120dpi
Re: Custom File Icons not working on all drives
To match network drives too you would have to use /en instead. On the other local disks, are you 100% sure the folders are empty that you are checking, and don't have something like a hidden desktop.ini file.
-
daniel_m
- Posts: 232
- Joined: 11 Apr 2010 11:47
- Location: Windows 10 Pro 22H2, scaling 100%
Re: Custom File Icons not working on all drives
Thanks. Unfortunately, "*\ /en><xy> /5" doesn't work on my mapped network drive either.
And yes, i am 100% sure the folders are empty. I made new folders for testing purposes.
And yes, i am 100% sure the folders are empty. I made new folders for testing purposes.
XYplorer x64 (often the latest beta), Windows 10 Pro 22H2, 3840x2160 scaling 100%
-
jupe
- Posts: 3462
- Joined: 20 Oct 2017 21:14
- Location: Win10 22H2 120dpi
Re: Custom File Icons not working on all drives
Just out of interest, since you say you tested in fresh with I assume only that single CFI entry enabled, and I am not sure this would even be relevant, but just to give extra info to admin, what file system are the non working disks? Here is a quick script if you want to post the results.
$r = ""; foreach($d, <get drives>) { $r .= $d . get("filesystem", $d) . <crlf>; } text $r;-
daniel_m
- Posts: 232
- Joined: 11 Apr 2010 11:47
- Location: Windows 10 Pro 22H2, scaling 100%
Re: Custom File Icons not working on all drives
They are all NTFS:
C:\NTFS
D:\NTFS
E:\NTFS
G:\NTFS
H:\NTFS
Q:\NTFS
C, D, E, and G are SATA SSDs, H is a dynamic volume comprised of 2 SATA HDDs, and Q is a mapped network drive.
The custom file icons work on C and H. I don't see a pattern here ...
C:\NTFS
D:\NTFS
E:\NTFS
G:\NTFS
H:\NTFS
Q:\NTFS
C, D, E, and G are SATA SSDs, H is a dynamic volume comprised of 2 SATA HDDs, and Q is a mapped network drive.
The custom file icons work on C and H. I don't see a pattern here ...
XYplorer x64 (often the latest beta), Windows 10 Pro 22H2, 3840x2160 scaling 100%
-
admin
- Site Admin
- Posts: 66560
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Custom File Icons not working on all drives
Weird! Is it the same with access denied folders? (
"*\ /xn><xy> /5")FAQ | XY News RSS | XY X
-
daniel_m
- Posts: 232
- Joined: 11 Apr 2010 11:47
- Location: Windows 10 Pro 22H2, scaling 100%
Re: Custom File Icons not working on all drives
Access denied folders for the "System Volume Information" folder works on C, D, E, but not on G, H, and Q. I tried to enter this folder on all drives, and XYplorer shows me the expected "Access is denied." error message for all of them.
I created a new folder on H, disabled inheritance, and removed all principals except "system" from the security settings. This folder gets flagged as "access denied folder" (/xn) by XYplorer. This new folder and the System Volume Information folder have the same owner (Administrators) and the same permissions (the only principal is system, which has full control).
Access denied seems to work differently on my network drive. Windows doesn't let me change the security settings for files and folders on this drive. But I can remove read access from within the UI of my NAS. Doing so, I get the expected "Access is denied." error message from XYplorer when I try to open a folder without read access. But the custom file icon for /xn does not work for this folder either.
I created a new folder on H, disabled inheritance, and removed all principals except "system" from the security settings. This folder gets flagged as "access denied folder" (/xn) by XYplorer. This new folder and the System Volume Information folder have the same owner (Administrators) and the same permissions (the only principal is system, which has full control).
Access denied seems to work differently on my network drive. Windows doesn't let me change the security settings for files and folders on this drive. But I can remove read access from within the UI of my NAS. Doing so, I get the expected "Access is denied." error message from XYplorer when I try to open a folder without read access. But the custom file icon for /xn does not work for this folder either.
XYplorer x64 (often the latest beta), Windows 10 Pro 22H2, 3840x2160 scaling 100%
-
admin
- Site Admin
- Posts: 66560
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Custom File Icons not working on all drives
In the next beta, try this script on your folder path and show us the results:
For example:
Code: Select all
exist "your_folder_path";Code: Select all
exist "C:\Users\Donald\AppData\Local\ElevatedDiagnostics";FAQ | XY News RSS | XY X
-
daniel_m
- Posts: 232
- Joined: 11 Apr 2010 11:47
- Location: Windows 10 Pro 22H2, scaling 100%
Re: Custom File Icons not working on all drives
Thanks for looking into this
I posted the full output of "exist" for working and non-working folder below. The only difference between the different folders (on local drives) is GetFileAttributes:
Not working:
G:\System Volume Information => GetFileAttributes: 0x816 (2070)
H:\System Volume Information => GetFileAttributes: 0x816 (2070)
Q:\New Folder => GetFileAttributes: 0x10 (16) (mapped network drive)
Working:
H:\New Folder => GetFileAttributes: 0x2010 (8208)
C:\System Volume Information => GetFileAttributes: 0x16 (22)
D:\System Volume Information => GetFileAttributes: 0x16 (22)
E:\System Volume Information => GetFileAttributes: 0x16 (22)
Access denied folder icon working for "H:\New Folder":
No access denied folder icon shown for "H:\System Volume Information":
No access denied folder icon shown for "Q:\New Folder":
I posted the full output of "exist" for working and non-working folder below. The only difference between the different folders (on local drives) is GetFileAttributes:
Not working:
G:\System Volume Information => GetFileAttributes: 0x816 (2070)
H:\System Volume Information => GetFileAttributes: 0x816 (2070)
Q:\New Folder => GetFileAttributes: 0x10 (16) (mapped network drive)
Working:
H:\New Folder => GetFileAttributes: 0x2010 (8208)
C:\System Volume Information => GetFileAttributes: 0x16 (22)
D:\System Volume Information => GetFileAttributes: 0x16 (22)
E:\System Volume Information => GetFileAttributes: 0x16 (22)
Access denied folder icon working for "H:\New Folder":
Code: Select all
XYplorer 24.50.0201 - Windows 10 Pro N, 64-bit, Version 22H2, Build 19045.2965 (10.0) - 2023-06-20 14:57:14
Path: H:\New Folder
Real Path: H:\New Folder
ExistFile: False
ExistPath: True
ExistFolder: True
ExistItemFF: True
ExistPathFF: False (Access is denied.)
ExistPathOrFile: True
ExistPathOrFileShell: True
ExistDrive: True
ExistIcon: True
HasFolderContents: False - Error 5: Access is denied.
IsNetworkLocation: False
GetDriveType: 3 (DRIVE_FIXED)
GetItemType: 2
GetFileAttributes: 0x2010 (8208)
Owner:
IsDriveHidden: False/False, ShowHiddenDrives: 0, HideDrivesByLetter:
This path available in Tree: True
Current node available in Tree: True
Watchable: True
LockedTree: 0, MiniTree: 0, MiniTreeVerifyOnSelect: 0, TreeSkipVerifyOnSelect: 0, FilenamesCaseSensitive: 0
FastNetworkEnumeration: 1, AssumeServersExist: 1, PrecheckServers: 0, CacheServers: 1
CheckServerMethod: 0, CheckServer3: 0, NetworkCapsCheck: 0, ShowAllServers: 0, ShowHiddenShares: 0Code: Select all
XYplorer 24.50.0201 - Windows 10 Pro N, 64-bit, Version 22H2, Build 19045.2965 (10.0) - 2023-06-20 14:57:53
Path: H:\System Volume Information
Real Path: H:\System Volume Information
ExistFile: False
ExistPath: True
ExistFolder: True
ExistItemFF: True
ExistPathFF: False (Access is denied.)
ExistPathOrFile: True
ExistPathOrFileShell: True
ExistDrive: True
ExistIcon: True
HasFolderContents: False - Error 5: Access is denied.
IsNetworkLocation: False
GetDriveType: 3 (DRIVE_FIXED)
GetItemType: 2
GetFileAttributes: 0x816 (2070)
Owner:
IsDriveHidden: False/False, ShowHiddenDrives: 0, HideDrivesByLetter:
This path available in Tree: True
Current node available in Tree: True
Watchable: True
LockedTree: 0, MiniTree: 0, MiniTreeVerifyOnSelect: 0, TreeSkipVerifyOnSelect: 0, FilenamesCaseSensitive: 0
FastNetworkEnumeration: 1, AssumeServersExist: 1, PrecheckServers: 0, CacheServers: 1
CheckServerMethod: 0, CheckServer3: 0, NetworkCapsCheck: 0, ShowAllServers: 0, ShowHiddenShares: 0Code: Select all
XYplorer 24.50.0201 - Windows 10 Pro N, 64-bit, Version 22H2, Build 19045.2965 (10.0) - 2023-06-20 15:00:40
Path: Q:\New Folder
Real Path: Q:\New Folder
ExistFile: False
ExistPath: True
ExistFolder: True
ExistItemFF: True
ExistPathFF: False (An unexpected network error occurred.)
ExistPathOrFile: True
ExistPathOrFileShell: True
ExistDrive: True
ExistIcon: True
HasFolderContents: False - Error 59: An unexpected network error occurred.
IsNetworkLocation: True
GetDriveType: 4 (DRIVE_REMOTE)
GetItemType: 2
GetFileAttributes: 0x10 (16)
Owner:
IsDriveHidden: False/False, ShowHiddenDrives: 0, HideDrivesByLetter:
This path available in Tree: True
Current node available in Tree: True
Watchable: True
Mapped: \\192.168.1.250\VoidZ2
LockedTree: 0, MiniTree: 0, MiniTreeVerifyOnSelect: 0, TreeSkipVerifyOnSelect: 0, FilenamesCaseSensitive: 0
FastNetworkEnumeration: 1, AssumeServersExist: 1, PrecheckServers: 0, CacheServers: 1
CheckServerMethod: 0, CheckServer3: 0, NetworkCapsCheck: 0, ShowAllServers: 0, ShowHiddenShares: 0XYplorer x64 (often the latest beta), Windows 10 Pro 22H2, 3840x2160 scaling 100%
-
admin
- Site Admin
- Posts: 66560
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Custom File Icons not working on all drives
The 3rd one is "Error 59: An unexpected network error occurred." That explains it, and can fix that.
But the 2nd one looks totally normal. Sure it does not work?
* * *
What about Empty Folders that don't work?
But the 2nd one looks totally normal. Sure it does not work?
* * *
What about Empty Folders that don't work?
FAQ | XY News RSS | XY X
-
admin
- Site Admin
- Posts: 66560
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Custom File Icons not working on all drives
I have a different idea now. What is the normal icon (non Custom File Icons) for these folders? Is it maybe not the default folder icon?
FAQ | XY News RSS | XY X
-
daniel_m
- Posts: 232
- Joined: 11 Apr 2010 11:47
- Location: Windows 10 Pro 22H2, scaling 100%
Re: Custom File Icons not working on all drives
Yes, I double and triple checked. But, I will try the #1 IT advice: Switching the computer off and on again ... and report back.
Regarding empty folders:
Working:
H:\New Folder-01 => GetFileAttributes: 0x2010 (8208)
H:\_BluetoothExchangeFolder\New Folder => GetFileAttributes: 0x10 (16)
C:\New Folder => GetFileAttributes: 0x2010 (8208)
C:\PerfLogs => GetFileAttributes: 0x2010 (8208)
Not working:
G:\New Folder => GetFileAttributes: 0x2810 (10256)
G:\Games\GOG\!Downloads\temp => GetFileAttributes: 0x2810 (10256)
E:\Games\Steam\steamapps\temp\310560 => GetFileAttributes: 0x810 (2064)
D:\New Folder => GetFileAttributes: 0x2810 (10256)
(Same with "::fresh;")
Regarding empty folders:
Working:
H:\New Folder-01 => GetFileAttributes: 0x2010 (8208)
H:\_BluetoothExchangeFolder\New Folder => GetFileAttributes: 0x10 (16)
C:\New Folder => GetFileAttributes: 0x2010 (8208)
C:\PerfLogs => GetFileAttributes: 0x2010 (8208)
Not working:
G:\New Folder => GetFileAttributes: 0x2810 (10256)
G:\Games\GOG\!Downloads\temp => GetFileAttributes: 0x2810 (10256)
E:\Games\Steam\steamapps\temp\310560 => GetFileAttributes: 0x810 (2064)
D:\New Folder => GetFileAttributes: 0x2810 (10256)
(Same with "::fresh;")
XYplorer x64 (often the latest beta), Windows 10 Pro 22H2, 3840x2160 scaling 100%
-
admin
- Site Admin
- Posts: 66560
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Custom File Icons not working on all drives
Next beta will show the normal icon index in "exist".
* * *
What about this line when Empty Folder does not work?
* * *
What about this line when Empty Folder does not work?
Code: Select all
HasFolderContents: False - Error 59: An unexpected network error occurred.FAQ | XY News RSS | XY X
-
admin
- Site Admin
- Posts: 66560
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Custom File Icons not working on all drives
Do you get any Custom File Icons on these drives?
FAQ | XY News RSS | XY X
-
daniel_m
- Posts: 232
- Joined: 11 Apr 2010 11:47
- Location: Windows 10 Pro 22H2, scaling 100%
Re: Custom File Icons not working on all drives
Sorry, I forgot to add that I did not customise icons in Windows, and I don't use any other custom icons in XYplorer.
For an empty folder on my network drive with read access for XYplorer, I get "HasFolderContents: False" without any unexpected network errors.
Rebooting did not change anything.
I will try out more custom file icons (have to learn how first
) and try out the next beta, and report back afterwards.
For an empty folder on my network drive with read access for XYplorer, I get "HasFolderContents: False" without any unexpected network errors.
Rebooting did not change anything.
I will try out more custom file icons (have to learn how first
XYplorer x64 (often the latest beta), Windows 10 Pro 22H2, 3840x2160 scaling 100%
XYplorer Beta Club