Change batch files default editor

by Wayne Maples [Published on 20 April 2004 / Last Updated on 20 April 2004]

Notepad is the default editor when you right-click a batch file in Explorer. I prefer using UltraEdit-32. To change the default from NotePad to the editor of your choice:

Hive: HKEY_CLASSES_ROOT
Key: batfile\shell\edit\command
Name: Default
Type: REG_EXPAND_SZ
Value: %SystemRoot%\System32\NOTEPAD.EXE %1 default
Value: C:\Program Files\ULTRAEDT\UEDIT32.EXe %1 my choice

For Windows 2000, its No Name instead of Default.

See Also

Featured Links