Registry Tip #225: Change batch files default editor

Hits: Failed to execute CGI : Win32 Error Code = 3


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.



Tim Hill's text on command line scripting is outstanding. If you have an extensive background, writing bat files, forget it. Otherwise, get it.