Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I was inspired by my other question to try the following:

Windows Registry Editor Version 5.00




@="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?

share|improve this question
Here's thinking that this is a dupe of the question linked to. OP should be adding this to that question via an edit, no? – marcusw May 3 '10 at 19:18
@marcusw: doesn't appear a duplicate to me; if anything it's a more general case (in which case the other question can be closed as a duplicate of this one). – quack quixote May 3 '10 at 19:26
up vote 1 down vote accepted

The default value of the .sln key should be something like VisualStudio.Launcher.sln. That's called the program ID (ProgID) and it's the key you should edit to change the context menu:


A ProgID key always takes precedence, so any changes made to the extension key will be ignored when a ProgID is present. ProgIDs are mainly used to group extensions into logical file types.

share|improve this answer
@efotinis: slightly unrelated, but is that why jpegs are unaffected by these registry tweaks but avis are? – quack quixote May 4 '10 at 10:08

You must log in to answer this question.