.SCR file association fix for Windows 10

.scr files are Screensaver files in Windows, and as you may know, they are protected and impossible to associate them to a text editor from the "Default Apps" menu.
So here is an easy way to fix that.

First, you need to associate .cfg files with the text editor you want to use. In my case i use Sublime Text.
Right click on any .cfg file -> Open with -> and select the editor you want as the default app.

Then, to associate .scr files with the text editor, open the Command Prompt as Administrator and type in:
assoc .scr=cfg_auto_file




This will make windows detect .scr files as if they were .cfg files, so you can just double-click them to open.



To revert back to defaults, type:
assoc .scr=scrfile