How do I restore .bat files as executables?
Recently I noticed that batch files (*.bat) now open using Notepad++ (NP++), rather than the file being executed. I don't know how this association to NP++ was created (I installed NP++ a long time ago, and I don't remember making the association myself).
Control Panel -> Default Programs -> Set Associations shows that
.bat / BAT File / Notepad++
I tried following the instructions in How to delete a file association? but the association remains.
batfile="%1" %*, which appears to be correct.
assocyields nothing for
I tried running
assoc .bat=batfile but the assocation to NP++ still shows up in Control Panel, and batch files still open in NP++.
How can I restore batch files to their proper association so that they are run, instead of being opened in NP++?
UPDATE: After some more research, it appears I might have made this association through some variant of Right-click -> "Open With..."