Search code examples
pythonwindowsdirectoryicons

Get folder icon in python


Is there any way to get a folder icon (Windows 10)?

I need to get the file/link/path to the folder icon with Python

I found how to change the icon, but I didn't find how to get it

I could not find packages to solve this problem. Does anyone know how to do this with Python?


Solution

  • The system icons including the folder icon are stored in the following dll %systemroot%\system32\imageres.dll (icon locations)

    You could try extracting these icons using the python package icoextract