Windows 7 how to display proper icons

5,917

According to THIS page, there are multiple ways of changing file extension icons, although I think "OPTION ONE" will be the easiest.

In your circumstances, this is what I think you need to do.

  1. Download FileTypesMan from HERE, and execute it.
  2. Scroll down until you find four Python extensions (.py, .pyc, .pyo , and .pyw).
  3. Double click on each of them individually, and replace the Default Icon field with the file path to the correct Python icon.
    1. For .py and .pyw the default file path to the icon should be something like C:\Python27\DLLs\py.ico (for Python 2.7) or C:\Python33\DLLs\py.ico (for Python 3.3).
    2. For .pyc and .pyo the default file path to the icon should be something like C:\Python27\DLLs\pyc.ico (for Python 2.7) or C:\Python33\DLLs\pyc.ico (for Python 3.3).
  4. Close FileTypesMan.

If you didn't use the default installation directory when installing Python, or used a different version, make sure you replace the C:\Python27 or C:\Python33 in the above file paths with the file path to your Python installation.

After completing all above steps, all your Python icons should have their correct icons. If for some reason they still don't, make sure you try rebooting your computer or double check the file path to the icons.

Share:
5,917

Related videos on Youtube

FoamyGuy
Author by

FoamyGuy

Updated on September 18, 2022

Comments

  • FoamyGuy
    FoamyGuy almost 2 years

    I am running windows 7. I have the default program for .py files set to the python.exe. If I double click a .py file it will launch correctly with python.

    But in the windows explorer the icon next to .py files shows like it would if they were .txt (a sheet of paper with a folded corner)

    Somewhere along the way the default program got set to notepad which is when the icon changed to this, but it has since been changed back to python and is working correctly with the python exe. But the icon didn't switch back when this change occurred.

    Is there anything I can do to force it to switch to the standard .py icon rather than the txt one?

  • MarredCheese
    MarredCheese about 7 years
    Here's an FYI to anyone using this technique to open .py files with Sublime Text or whatever else (besides Python). I couldn't find a .ico file anywhere, but I was able to use this tool to extract the icon file from sublime_text.exe. Link: rw-designer.com/batch-icon-extractor