A
A
Aristarkh Deryapa2017-06-13 22:40:21
Windows
Aristarkh Deryapa, 2017-06-13 22:40:21

How to create a file extension association?

I have an image (icon.ico), a file (project.pypr) and python 3.4. How to create a file extension association? I need the .pypr file to have a photo... How can I do it?
ps Preferably without third-party libraries.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
nirvimel, 2017-06-13
@nirvimel

If you need to statically set one common icon for all files with a certain extension, then this is done by creating a key in HKEY_CLASSES_ROOT corresponding to this extension (detailed guide ).
If you need to dynamically show different icons for each individual file (extract from them or load from somewhere outside), then you will have to write an Icon Handler in C / C ++.

K
Konstantin Tsvetkov, 2017-06-14
@tsklab

How to create a file extension association?
I have an image (icon.ico), a file (project.pypr) and python 3.4. How to create a file extension association?
You don't need this.
Create a shortcut for the file you need and set the icon you need in it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question