0

Is it possible to add an option to the right click context menu that has a dynamic name? Meaning the name could change? I'd like to (for fun) have a menu option added with a name that would be the location of where the right click took place.

For example if I right clicked the background of the desktop the menu item that I added would have the name C:\Users\me\Desktop

Or if I right click the background of documents the name of the menu item that I added would have the name C:\Users\me\Documents

Core2
  • 61
  • 6
  • Oh yes, absolutely. You’ll have to write a shell extension. But I’m not sure whether this question is on-topic. – Daniel B Aug 02 '17 at 15:15
  • @DanielB Question on topic? Meaning there may be a better place for this question? Like stack overflow? – Core2 Aug 02 '17 at 15:17
  • In my opinion this is on topic, as it asks how rather than focusing on the code part. This question does not explicitly reference shell extension, so this post should stay on SuperUser. But you should inquiry Stack Overflow, if you accept shell extension as an answer or code as an answer – El8dN8 Aug 02 '17 at 15:24
  • @El8tedN8te I feel the same. Thanks. – Core2 Aug 02 '17 at 15:28
  • @DanielB I have very little experience writing a shell etension. The only time I did I was blindly following a tutorial on pluralsight. But from that experience you make .rgs files that when the dll is registered with the windows os it makes entries into the registry to implement the context menu. So I should be able to do that manually yes? – Core2 Aug 02 '17 at 15:34
  • No. A shell extension’s context menu entries are generated on-the-fly by executing code. I can’t find any example code right now though, because it’s arcane technology. – Daniel B Aug 02 '17 at 15:45

0 Answers0