Can I assign the same shortcut menu to different applications with different values?

Rohan Pande 445 Reputation points
2023-12-19T09:21:49.54+00:00

Hi,

I have Two Applications 'A.exe' and 'B.exe' so, I have added a shortcut menu in the registry editor such that if I right click on the exe, it that shortcut menu appears. (Note: I want to have this shortcut menu only for my applications and not for all applications)

Now I have created my own key inside this path (Computer\HKEY_CLASSES_ROOT\exefile) and added a string value 'AppliesTo' and its value is my application name and then later added the command key where I passed the exe hardcoded path.

So, this runs perfectly for A.exe but not for B.exe because after bringing the shortcut menu even for B it was launching A.exe and not B.exe. So, can I add the same shortcut for multiple applications and launch the exe which user has clicked upon??

Developer technologies | C++
0 comments No comments
{count} votes

Accepted answer
  1. Minxin Yu 13,501 Reputation points Microsoft External Staff
    2023-12-20T05:49:36.7666667+00:00

    Hi, Rohan Pande

    Modify the command of DoIt "%1" run the app itself

    Such as "%1" any parameter

    User's image

    Best regards,

    Minxin Yu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.