SoFunction
Updated on 2025-04-08

A very good way to prevent exe files from being infected

Idea: Create a new program file type with the extension EEE

Modify the file name that needs protection to be extended to eee.

Method: Copy the following code as a reg file and import the registry:

Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\.eee]
@="eeefile"
[HKEY_CLASSES_ROOT\eeefile]
@="App"
"EditFlags"=hex:38,07,00,00
[HKEY_CLASSES_ROOT\eeefile\DefaultIcon]
@="%1"
[HKEY_CLASSES_ROOT\eeefile\shell]
[HKEY_CLASSES_ROOT\eeefile\shell\open\command]
@="\"%1\" %*" 

Some files cannot be opened after changing their names. Will fail.
Some viruses do not consider file extensions when infected, and will fail.

For normal EXE files, the above probability of failure is 1%.

So this method is pretty good.

However, it doesn't feel practical. If the entire system is modified, not only will the extension be modified, but the shortcut also needs to be modified. It's very troublesome to say.