Hey just thought i would chuck this in since this page proved useful. i have been trying to change the EDIT function to point to Notepad ++ rather than Notepad for .txt files for a while now. Its under
HKEY_CLASSES_ROOT\SystemFileAssociations\text\shell\edit\command
registry key, just point it to your desired text editor.
kudos to CGA