Have you ever noticed that the File Types option was completely removed from Vista, and there’s no built-in way to change the editor for many file types?

Sure, you’re able to change the default software used to launch the file, but you’re able to’t change what happens when you right-click / edit.

you’ve got the option to either directly hack the registry, or there’s a freeware utility that adds the functionality back… we’ll show you how to do both methods.Using the Registry Hack MethodOpen up regedit.exe through the start menu search or run box, and then browse down to the following key:

HKEY_CLASSES_ROOT\batfile\shell\edit\command

Double-hit the (Default) key to open it up, and then replace 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 inserts the current file name into the path)Using the Easy MethodUsing the freeware and open-source Types utility, you’ve got the option to easily change file types… just find the “bat” extension in the list, or filter by the “batfile” class, then open up the properties.

Change the Default Editor for Batch Files in Vista

you’re free to easily replace the editor by just using the yellow icon next to the drop-down and choosing your preferred editor.

Of course, it’s possible for you to use this app to change the default editor for any file jot down, not just batch files.Download Types from sourceforge.net

image

image

Windows