Change the Default Editor for Batch Files in Vista
Do you yet notice that the File Types option was entirely removed from Vista, and there is no fixed way to modify the editor for many file types? In no doubt, you can change the default application used to open the file, but you cannot change what happens when you right-click / edit.
You be able to either directly hack the registry, or there is a freeware utility that adds the functionality back… we will show you how to do both methods.
By Using the Registry Hack Method...
Open up regedit.exe through the start menu search or run box, and then browse down to the following key
Double-click on the (Default) key to open it up, and then substitute the path for notepad with the full path for your preferred editor, making sure to leave a space and then the 1% at the end (which insert the current file name into the path).
By Using the Easy Method...
Using the freeware and open-source Types utility, you can simply change file types… just find the “bat” extension in the list, or filter by the “batfile” class, then open up the properties. You can easily change the editor by just using the yellow icon next to the drop-down and choose your favoured editor.
Of course, you can use this application to change the default editor for any file type, not just batch files.