开发者

Can you create a windows explorer plugin using .net?

开发者 https://www.devze.com 2022-12-21 09:51 出处:网络
For example I wanted to create a simple plugin that supports multi-rename. I was thinking of something like a button that could be added to toolbar in windows explorer. But how do I do th开发者_高级运

For example I wanted to create a simple plugin that supports multi-rename. I was thinking of something like a button that could be added to toolbar in windows explorer. But how do I do th开发者_高级运维at and also can this be done in .net?


This can be done, but it's not necessarily a good idea. You need to wrap the shell extension API, which is all COM based, so can be used from within .NET.

However, the problem arises if the user has any extensions using .NET 1.1. Version 2 of the CLR can't be loaded into an application loading v1.1 of the CLR, so this can cause some very odd behaviors. CLR 4 and .NET 4 addresses this by allowing in process side-by-side hosting of .NET.


You can certainly write a shell extension in .net - it is actually quite easy although a tad bit tedious. Here is an example: http://www.codeproject.com/KB/cs/dateparser.aspx

0

精彩评论

暂无评论...
验证码 换一张
取 消