How to add application to right click menu in Windows

/*

Author :Jiangong SUN

*/


You want to add an application for some types of files when you right click such files, but the system doesn't do it for you automatically. For this problem, you have some solutions. 

For example, you need to open some types of files with one specific application all the time, you can right click the file and choose "open with" and then choose one specific application. But here we'll discover the other methods which need to make some modifications in the registry.

In this case, you also have two possibilities: first, you need to display the application when you right click for a single type of file; second, you need to display the application for all types of files.

The first example we take will solve the first problem, I'll add ILDASM.exe to right click menu for dynamic link library files.

Type "regedit" in command line, unfold "HKEY_CLASSES_ROOT" directory, find "dllfile" directory, find sub-directory "shell", create it if you don't find it.

Then right click "shell" and click "New" -> "Key", name it as "ViewInILDASM". Then right click "ViewInILDASM" and click "New" -> "Key", name it as "command". 

You will find a "Default" key in "command" directory, assign the value "C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin\ildasm.exe" "%1" to it.

The structure will display like this:



The same process can be done for "exefile"



Another case is you need to add one application to all types of files. And you need to find "*" directory in the same root "HKEY_CLASSES_ROOT". 

Find sub-directory "shell" in directory "*", create it if doesn't exist. Now you can click right "New" -> "Key", name it as "Open In Notepad". 

And then create a sub directory "command". You will find a "Default" key in "command", assign value "C:\Windows\System32\notepad.exe %1" to it.

The final screen will be like:



Now we can make some tests in our system. I right click on a dll file, it will show like this:



Finally we have discovered the two ways of adding applications to right click menu. I hope it can do some help in your daily work.


Enjoy!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值