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][1]…
- 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”[1]: http://stackoverflow.com/questions/20720404/what-is-the-default-program-to-interpret-windows-batch-file