エクスプローラーのフォルダーアイコンを変更
前回は imageres にあるアイコンを利用してフォルダーアイコンを変更したけど、数が限られています。
そこで今回はシステムにある svgファイルを編集して自分好みのアイコンを作成する方法。


- = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = -
🟨 テンプレートとなりそうな svgファイル は以下にあります。
C:\Windows\SystemApps\MicrosoftWindows.Client.FileExp_cw5n1h2txyewy\FileExplorerExtensions\Assets\images\

🟨 アウトラインだけだとちょっと見づらいので色を付けるなど編集します。
💠 svgファイル の編集は、Inkscape などで行います。
💠 編集した svgファイル を icoファイル に変換するには、ico.so などで行います。

Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons]
"3"="\"G:\\Documents\\Pictures\\ICON\\CloseFolderColor.ico\""
⚠️ 以前は閉じているアイコンと開いているアイコンを指定できていたのだけれど、現在は "4"(開いているアイコン) は無効になっているようです。
アイコンとしては、3 と 4 があるのになぁ・・・
でも、どちらも同じアイコンなんでそもそも意味がないけど。
こういった、ちょっとしたところでも以前と比べるとエクスプローラーの利便性は落ちてる。
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
🟨 キャッシュが残っていると反映されないので、以下のバッチファイルを実行。
(念のためBags以下の数字キーも)
@echo off
openfiles > nul 2>&1
if errorlevel 1 (
PowerShell.exe -Command Start-Process ""%0"" -Verb runas
exit
)
taskkill /f /im explorer.exe
del /a:h /f /q %localappdata%\IconCache.db > nul 2>&1
del /a:i /f /q %localappdata%\Microsoft\Windows\Explorer\iconcache* > nul 2>&1
del /a:i /f /q %localappdata%\Microsoft\Windows\Explorer\thumbcache* > nul 2>&1
ie4uinit.exe -show
for /f "tokens=1 delims=" %%i in ('reg query "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags" ^| findstr /r /c:"\\Bags\\[1-9]"') do reg delete "%%i" /f > nul
start explorer.exe
⚠️ アイコンキャッシュの再構築.cmd などと保存して実行します。
‼️ Bags以下の数字キーはすべて削除されます。
特定のフォルダーの表示設定をしている場合は、ShellBagsExplorer でキーを探してバックアップしてください。
- = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = -
🟨 フォルダーアイコンじゃないけど、C:\Windows\SystemApps\以下には色々な svgファイル があります。
C:\Windows\SystemApps\MicrosoftWindows.Client.Photon_cw5n1h2txyewy\Public\wsxpacks\Account\assets\assets\images\
