By default, cmd starts with assumed /K switch. However, if you invoke a bat file through self-referencing association, Windows do some magic and actually call cmd with /C switch.
However, you changed this behavior by using "Open with…" menu on .bat files at some point.
This is what get saved as "Explorer\FileExts\.<ext>\UserChoice"
However, you changed this behavior by using "Open with…" menu on .bat files at some point.
This is what get saved as "Explorer\FileExts\.<ext>\UserChoice"