我想写一个小工具,即执行以下操作:
当你右键点击一个特定的文件扩展名的文件在Windows资源管理器上下文菜单中显示的附加项。
当您单击此项一定的EXE文件与此文件作为它的一个参数推出。
我想用C#/。NET 2.0这一点。如果这是不可能的我也能做到这一点与C ++ / Win32的。
我的问题是:
是否有可能与C#.net 2.0? 什么是必要的功能集成到Windows资源管理器右键菜单? 我怎样才能使这个永久的吗? (我不希望每次重新启动后,启动该工具) 在我有什么要采取特殊照顾? (不同的操作系统,安全权限,等等。) 解决方案您将需要访问注册表,并在根 文件外壳添加一个关键
或根文件夹壳
,这取决于你想要的菜单项,可见这项目。
尝试本文为$ C $的CProject ,这是相当有用的。
编辑:有另一篇文章这里这可能是帮助
I want to write a small tool, that does the following:
When you right click on a file with a certain file-extension the Windows Explorer context menu shows an additional entry.
When you click this entry a certain EXE is launched with this file as one of its parameters.
I would like to use C#/.NET 2.0 for this. If it's not possible I could also do it with C++/Win32.
My questions are:
Is it possible with C# .NET 2.0? What are the necessary functions for integrating into the Windows Explorer context menu? How can I make this permanent? (I don't want to relaunch this tool after every boot) What do I have to take special care of? (different OS, security permissions, etc.)解决方案
You will need to access the registry and add a key under rootFileshell
or rootFoldershell
, depending on which items you want the menu item visible on.
Try this article at CodeProject, it's quite useful.
Edit: There's another article here which may be of help.
相关推荐
最新文章