如何在Windows资源管理器中托管根目录命名空间扩展 [英] How to host a rooted namespace extension in Windows Explorer
问题描述
有一种方法可以创建以特定文件夹为根的命名空间扩展.
There is a method to create a namespace extension rooted in a particular folder.
它涉及使用以下名称创建文件夹:
It involves creating folder with a name like:
My Custom NSE.{785EE551-DEE1-4F57-A8C9-0EF76F346A29}
然后Windows资源管理器将在该位置自动托管该clsid的NSE.
And Windows Explorer will automatically host the NSE of that clsid at that location.
但是对于我一生来说,我再也找不到语法了.它曾经在名称空间扩展文档中的MSDN上发布,并且列出了将名称空间导入Windows资源管理器的3种方法-这就是其中一种.
But for the life of me i cannot find the syntax anymore. It used to be on MSDN in the namespace extension documentation, and it listed the 3 ways to get your namespace into Windows Explorer - that this was one of them.
语法是什么-让我发疯了!
What's the syntax - it's driving me crazy!
推荐答案
我找到了它.有三种方法可以将名称空间扩展名添加到我的电脑"中
i found it. There are 3 ways to get your namespace extension into "My Computer"
a)将条目添加到注册表中
a) Add entry to the registry
\Software
\Microsoft
\Windows
\CurrentVersion
\Explorer
\(Virtual Folder Name)
\Namespace
\{785EE551-DEE1-4F57-A8C9-0EF76F346A29}
其中"虚拟文件夹名称"可以是其中之一
Where "Virtual Folder Name" can be one of
- MyComputer
- 桌面
- ControlPanel
- 网络邻居
- NetworkNeighborhood \ EntireNetwork
- 远程计算机
b)创建一个名为
My Custom NSE.{785EE551-DEE1-4F57-A8C9-0EF76F346A29}
c)创建一个只读系统文件夹,创建一个desktop.ini文件,并在其中添加:
c) Create a read-only system folder, create a desktop.ini file, and to it add:
[.ShellClassInfo]
CLSID={785EE551-DEE1-4F57-A8C9-0EF76F346A29}
您还可以将Shell名称空间扩展托管在单独的资源管理器副本中:
You can also host the shell namespace extension in a separate copy of explorer:
%SystemRoot%\Explorer.exe /e,::{785EE551-DEE1-4F57-A8C9-0EF76F346A29}
这篇关于如何在Windows资源管理器中托管根目录命名空间扩展的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!