Page 1 of 2
Custom column icon
Posted: 18 Apr 2019 23:03
by Posix
I created custom column for OneDrive files.
I cant see icons. Only fast stone icon (my image viewer).

- icon.png (32.52 KiB) Viewed 3438 times
If I set format to Text, its ok

- text.png (28.92 KiB) Viewed 3438 times
Icons are in <xyicons>

- icons.png (38.62 KiB) Viewed 3438 times
Where is the problem. Do I need change settings?
Re: Custom column icon
Posted: 18 Apr 2019 23:25
by highend
And, does your XY icon folder contain a file named "onedrive_sync.ico"?
...
Re: Custom column icon
Posted: 19 Apr 2019 00:47
by Posix
yes
Re: Custom column icon
Posted: 19 Apr 2019 05:08
by highend
Then show a screenshot of the icons folder where ALL onedrive icons are visible...
Re: Custom column icon
Posted: 19 Apr 2019 12:55
by Posix
ok
Re: Custom column icon
Posted: 19 Apr 2019 13:04
by highend
Is that screenshot taken from XYplorer (different view than details)?
Do you use any portable file icons in XY? If yes, show the dialog window of their definitions.
Apart from that, I would do a PC reboot and if that doesn't help, I'd delete windows icon cache...
VBScript to do that:
Code: Select all
On Error Resume Next
DIM strComputer, objWMIService, colProcessList, objWSHshell, strUser, strSystemDrive, strWinDir, fso, strPath1, strPath2
Set objWSHshell = WScript.CreateObject("WScript.Shell")
strUser = objWSHshell.ExpandEnvironmentStrings("%USERNAME%")
strSystemDrive = objWSHshell.ExpandEnvironmentStrings("%SystemDrive%")
strWinDir = objWSHshell.ExpandEnvironmentStrings("%windir%")
strPath1 = strSystemDrive & "\Users\"
strPath2 = "\AppData\Local\IconCache.db"
Set fso = CreateObject("Scripting.FileSystemObject")
If fso.FileExists(strPath1 & strUser & strPath2) Then
strComputer = "."
Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colProcessList = objWMIService.ExecQuery ("Select * from Win32_Process Where Name = 'explorer.exe'")
For Each objProcess in colProcessList
objProcess.Terminate()
Next
fso.DeleteFile strPath1 & strUser & strPath2, true
objWSHshell.RegDelete "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify\IconStreams"
objWSHshell.RegDelete "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify\PastIconsStream"
objWSHshell.run strWinDir & "\explorer.exe"
End If
WScript.Quit
Re: Custom column icon
Posted: 19 Apr 2019 14:58
by Posix
I deleted icon cahce but it didn't help.
How can I show dialog for portable file icon definions?
Re: Custom column icon
Posted: 19 Apr 2019 15:02
by highend
Menu - Tools - Customize File Icons...?
Re: Custom column icon
Posted: 19 Apr 2019 15:08
by Posix
It's empty
Re: Custom column icon
Posted: 19 Apr 2019 15:11
by jupe
Sometimes problems like this can be solved by resetting your Windows OS default opening app for *.ico files, back to its default, because I noticed in your third screenshot icons aren't showing as images in details view for ico files, which they should if set up correctly.
Re: Custom column icon
Posted: 19 Apr 2019 19:11
by Posix
Ok it's Windows problem

I've tried every solution I found, but nothing works.
On my second PC it's working.
Re: Custom column icon
Posted: 20 Apr 2019 07:10
by bdeshi
Have you tried resetting icon file associations as jupe suggested? Try this: download
this registry file and merge it (double-click on the file) , and restart.
[ the file is from sevenforums. ]
Re: Custom column icon
Posted: 20 Apr 2019 15:13
by Posix
That registry file helped. Thanks.
Just hope it didnt delete soem important registry

Re: Custom column icon
Posted: 20 Apr 2019 17:42
by bdeshi
it's actually a plain text file, you can open it in notepad. It only resets the *.ico file association and nothing else.
Re: Custom column icon
Posted: 24 Jan 2024 16:57
by johnshi
All you need to do is go to the Windows system settings and reset the default application for ico format files back to Microsoft Paint.
Before

- 2024-01-24_235145.png (34.97 KiB) Viewed 1241 times
Solution

- 2024-01-24_234401.png (49.69 KiB) Viewed 1241 times
Done

- 2024-01-24_235333.png (34.8 KiB) Viewed 1241 times