If you’ve ever accidentally set batch files to open in a text editor, and now are unable to run them anymore you have to use the registry editor instead of the Control Panel file associations. As pointed out in this article…
- Click on “Start”->”Run” and type in “REGEDT32” and press Enter to start the Registry Editor.
- Find the following key: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.BAT\UserChoice
- Delete the key named “UserChoice”