- Open the registry editor (regedit.exe)
- Browse to
HKEY_CLASSES_ROOT\batfile\shell\edit\command
- Edit the default value and change to the executable you want to use to edit the batch files,
e.g."C:\Program Files\Programmer's Notepad\pn.exe" "%1"
- Click OK
- Browse to
HKEY_CLASSES_ROOT\cmdfile\shell\edit\command
- Edit the default value and change to the executable you want to use to edit the command files.
- Click OK
Thursday 25 February 2010
Changing default editor for batch scripts.
Right clicking on a .bat or .cmd file and select edit will open the file in the default program, Notepad. I prefer to use a different editor. To change the default for these files requires a registry change:
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment