S
S
Sergo Zar2021-03-12 19:48:36
Windows Registry
Sergo Zar, 2021-03-12 19:48:36

How to force an icon for a file type?

I'm using this simple reg file

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.html]
@="html_auto_file"
 
[HKEY_CLASSES_ROOT\.html\ShellNew]
"NullFile"=-
 
[HKEY_CLASSES_ROOT\.html\ShellNew]
"FileName"="C:\\_ShellNew\\index.html"
 
[HKEY_CLASSES_ROOT\html_auto_file]
@="HTML"

[HKEY_CLASSES_ROOT\html_auto_file\DefaultIcon]
@="C:\\_ShellNew\\ico\\html.png"

I set my own icons for the file types I needed, but some programs changed their icons without my permission. Accordingly, I need to somehow set the icon so that no program changes it. How can I do it?

ps windows 10 2004

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Korotenko, 2021-03-12
@firedragon

The registry has permissions. Go to the branch and prevent everyone from writing to the desired branches

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question