How to add application to right click menu in Windows
2013-03-01 21:52
375 查看
/*
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:
![](http://img.my.csdn.net/uploads/201303/01/1362145377_4493.png)
The same process can be done for "exefile"
![](http://img.my.csdn.net/uploads/201303/01/1362145504_8145.png)
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:
![](http://img.my.csdn.net/uploads/201303/01/1362146048_9206.png)
Now we can make some tests in our system. I right click on a dll file, it will show like this:
![](http://img.my.csdn.net/uploads/201303/01/1362146166_3370.png)
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!
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:
![](http://img.my.csdn.net/uploads/201303/01/1362145377_4493.png)
The same process can be done for "exefile"
![](http://img.my.csdn.net/uploads/201303/01/1362145504_8145.png)
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:
![](http://img.my.csdn.net/uploads/201303/01/1362146048_9206.png)
Now we can make some tests in our system. I right click on a dll file, it will show like this:
![](http://img.my.csdn.net/uploads/201303/01/1362146166_3370.png)
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!
相关文章推荐
- How to Add Windows 7 “God Mode” Shortcut in My Computer Context Menu?
- [旧稿]How To Add Simple "Install WebPart" Menu to the Right Click On a CAB File
- How To Add Simple "Install WebPart" Menu to the Right Click On a CAB File
- Add "DOS Here" to right button menu in Windows
- How to add a menuitem in Nautilus context menu.
- 【Sublime】Add sublime to right click menu
- How to set the QT Application icon in the windows.
- Silverlihgt 2.0 参考:如何在silverlihgt中使用右键(How to Right Click on a Silverlight Application.)
- How to add svn:externals in windows using TortoiseSVN
- How to Right Click on a Silverlight Application(鼠标右键 老外的)
- Windows 7 Tips: How to display administration tools in start menu
- Qt, how to add radio button or checkbox in menu
- How to Integrate Excel in a Windows Form Application using the WebBrowser
- ZZ: How to remove 'Open in Windows Explorer' from the 'Actions Menu'
- How to register a keyboard shortcut (hot key) in a .NET Windows Forms Application
- How to use ntrights.exe tool to assign user right in windows server env
- How to add a option in right-key short-cut.
- How to make a call in Windows Phone 7 application
- Add Select All Option to the Context Menu in Windows Vista
- How to add a Custom Pull to Refresh in your iOS Application