Change batch files default editor

  • Section(s): Restriction
  • Published on Apr 20, 2004.
  • Last Modified on Apr 20, 2004.
  • Last Modified by Wayne Maples.
  • Rated 4.4 out of 5 based on 9 votes.
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.

About Wayne Maples


Article not looking right or info is missing? Let us know so that we can fix it: .


Receive all the latest articles by email!

Receive Real-Time & Monthly WindowsNetworking.com article updates in your mailbox. Enter your email below!
Click for Real-Time sample & Monthly sample

Become a WindowsNetworking.com member!

Discuss your network issues with thousands of other network administrators. Click here to join!

Community Area

Log in | Register

Readers' Choice

Which is your preferred network administration tool?