Custom column icon

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Posix
Posts: 23
Joined: 17 Aug 2017 14:23

Custom column icon

Post by Posix »

I created custom column for OneDrive files.
I cant see icons. Only fast stone icon (my image viewer).
icon.png
icon.png (32.52 KiB) Viewed 2512 times

If I set format to Text, its ok
text.png
text.png (28.92 KiB) Viewed 2512 times

Icons are in <xyicons>
icons.png
icons.png (38.62 KiB) Viewed 2512 times
Where is the problem. Do I need change settings?

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Custom column icon

Post by highend »

And, does your XY icon folder contain a file named "onedrive_sync.ico"?
...
One of my scripts helped you out? Please donate via Paypal

Posix
Posts: 23
Joined: 17 Aug 2017 14:23

Re: Custom column icon

Post by Posix »

yes

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Custom column icon

Post by highend »

Then show a screenshot of the icons folder where ALL onedrive icons are visible...
One of my scripts helped you out? Please donate via Paypal

Posix
Posts: 23
Joined: 17 Aug 2017 14:23

Re: Custom column icon

Post by Posix »

ok
Attachments
2019-04-19 12_55_27-C__Users_David_AppData_Roaming_XYplorer_Icons - XYplorer 19.60.png
2019-04-19 12_55_27-C__Users_David_AppData_Roaming_XYplorer_Icons - XYplorer 19.60.png (16.08 KiB) Viewed 2476 times

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Custom column icon

Post 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

One of my scripts helped you out? Please donate via Paypal

Posix
Posts: 23
Joined: 17 Aug 2017 14:23

Re: Custom column icon

Post by Posix »

I deleted icon cahce but it didn't help.
How can I show dialog for portable file icon definions?

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Custom column icon

Post by highend »

Menu - Tools - Customize File Icons...?
One of my scripts helped you out? Please donate via Paypal

Posix
Posts: 23
Joined: 17 Aug 2017 14:23

Re: Custom column icon

Post by Posix »

It's empty

jupe
Posts: 2757
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: Custom column icon

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

Posix
Posts: 23
Joined: 17 Aug 2017 14:23

Re: Custom column icon

Post by Posix »

Ok it's Windows problem :( I've tried every solution I found, but nothing works.
On my second PC it's working.

bdeshi
Posts: 4249
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612 / Dhaka
Contact:

Re: Custom column icon

Post 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. ]
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

Posix
Posts: 23
Joined: 17 Aug 2017 14:23

Re: Custom column icon

Post by Posix »

That registry file helped. Thanks.
Just hope it didnt delete soem important registry :D

bdeshi
Posts: 4249
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612 / Dhaka
Contact:

Re: Custom column icon

Post 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.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

johnshi
Posts: 1
Joined: 24 Jan 2024 16:38

Re: Custom column icon

Post 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
2024-01-24_235145.png (34.97 KiB) Viewed 315 times
Solution
2024-01-24_234401.png
2024-01-24_234401.png (49.69 KiB) Viewed 315 times
Done
2024-01-24_235333.png
2024-01-24_235333.png (34.8 KiB) Viewed 315 times
Last edited by johnshi on 24 Jan 2024 16:59, edited 1 time in total.

Post Reply