How to associate a file extension to a program without making it the default program

后端 未结 5 1914
不思量自难忘°
不思量自难忘° 2021-01-12 06:38

I\'m deploying a small conversion tool on some systems, and want the users to be able to run it from the right click Open with menu. But I don\'t want to change

5条回答
  •  轮回少年
    2021-01-12 07:26

    You can add scripts to the context menu (below Open with) by adding it in the windows registry:

    1. Open regedit
    2. Goto HKEY_CLASSES_ROOT\your_class\Shell
    3. Add a new key and give it a name
    4. Edit the (Default) value of this key and insert the text you want to show in the context menu
    5. Add a new key named Command under your newly created key
    6. Edit the (Default) value of this key and insert the command you want to execute
    7. Enjoy!

提交回复
热议问题