从Windows上下文菜单运行应用程序
问题描述:
我需要在Windows文件夹浏览器中为我的应用程序提供上下文菜单.类似于防病毒软件.例如在防病毒中,当我们单击任何文件夹或文件时,我们可以看到选项扫描病毒"....类似地,每当我右键单击任何文件夹或目录时,它应该显示
Hi,
I need to have context menu in windows folder explorer for my application.. similar to the antivirus. for example in antivirus, when we click on any folder or file, we can see option "scan for virus".... similarly, whenever I right click on any folder or directory, then it should show the application name in context menu and once i click, it should run my application and the path of the selected folder should automatically come onto a combo box.
答
请参阅我对这个问题的评论.如果我的建议是您的意思,请参阅:
http://www.ghacks.net/2010 /08/15/add-custom-items-to-windows-explorer-context-menu/ [ http://www.informit.com/articles/article.aspx?p=169474& seqNum = 1 [ ^ ].
我找到了一些有关如何使用.NET的CodeProject文章:
简单shell上下文菜单 [如何使用.NET语言编写Windows Shell扩展 [ ^ ] 如何编写Windows使用.NET语言的Shell扩展 [ ^ ],
向Windows资源管理器添加上下文菜单 [ ^ ].
如果这确实适合您,请尝试查找更多内容:
http://www.codeproject.com/search.aspx?q=shell+ menu +%22.NET%22 [ ^ ].—SA
Please see my comment to the question. If what I suggest is what you mean, please see:
http://www.ghacks.net/2010/08/15/add-custom-items-to-windows-explorer-context-menu/[^].
In .NET:
http://www.informit.com/articles/article.aspx?p=169474&seqNum=1[^].
I''ve found some CodeProject articles on how to do it with .NET:
Simple shell context menu[^],
How to Write Windows Shell Extension with .NET Languages[^]How to Write Windows Shell Extension with .NET Languages[^],
Add a context menu to the Windows Explorer[^].
If this does suite you perfectly, try to find some more:
http://www.codeproject.com/search.aspx?q=shell+menu+%22.NET%22[^].—SA