集成到Windows资源管理器右键菜单 [英] Integrating into Windows Explorer context menu

查看:658
本文介绍了集成到Windows资源管理器右键菜单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想写一个小工具,即执行以下操作:

当你右键点击一个特定的文件扩展名的文件在Windows资源管理器上下文菜单中显示的附加项。

当您单击此项一定的EXE文件与此文件作为它的一个参数推出。

我想用C#/。NET 2.0这一点。如果这是不可能的我也能做到这一点与C ++ / Win32的。

我的问题是:

  1. 是否有可能与C#.net 2.0?
  2. 什么是必要的功能集成到Windows资源管理器右键菜单?
  3. 我怎样才能使这个永久的吗? (我不希望每次重新启动后,启动该工具)
  4. 在我有什么要采取特殊照顾? (不同的操作系统,安全权限,等等。)
解决方案

您将需要访问注册表,并在根\\ \\文件外壳添加一个关键根\文件夹\\壳,这取决于你想要的菜单项,可见这项目。

尝试本文为$ 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:

  1. Is it possible with C# .NET 2.0?
  2. What are the necessary functions for integrating into the Windows Explorer context menu?
  3. How can I make this permanent? (I don't want to relaunch this tool after every boot)
  4. 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 root\\File\\shell or root\Folder\\shell, 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.

这篇关于集成到Windows资源管理器右键菜单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆