I was inspired by my other question to try the following:
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Classes\.sln]
[HKEY_CURRENT_USER\Software\Classes\.sln\shell]
[HKEY_CURRENT_USER\Software\Classes\.sln\shell\countlines]
@="countlines"
[HKEY_CURRENT_USER\Software\Classes\.sln\shell\countlines\command]
@="c:\\countlines\\countlines.exe" %1
This should be adding a context menu item named "countlines" that runs the "countlines.exe" command, but it doesn't work.
How does one add a context menu entry for a given file extension?