如何以编程方式打开“库"Windows 7中Windows资源管理器中的文件夹? [英] How do I programmatically open the "Libraries" folder in Windows Explorer in Windows 7?
问题描述
请注意,用户可能已经为Windows资源管理器重新定义了默认窗口,因此仅接受使用 Process.Start
或 IShellDispatch.Open
打开"是不可接受的
Note, the user may have redefined the default window for windows explorer, so simply opening "" using Process.Start
or IShellDispatch.Open
is not going to be acceptable.
我认为这很琐碎,但是我已经浪费了一天的时间来寻找一个例子.请注意,Libraries文件夹是已知文件夹,其文件夹ID为 FOLDERID_Libraries
.使用关联的GUID通过
FOLDERID_Libraries 打开
I figured this would be trivial, but I've lost a day trying to find an example. Note, the Libraries folder is a known folder with a folder id of FOLDERID_Libraries
. Opening up using the associated GUID for FOLDERID_Libraries
using
Process.Start("explorer.exe",":: {1B3EA5DC-B587-4786-B4EF-BD1DC332AEAE}")
Process.Start("explorer.exe", "::{1B3EA5DC-B587-4786-B4EF-BD1DC332AEAE}")
改为打开我的文档".
虽然首选VB.NET或C#,但我几乎可以用任何一种语言设计解决方案.
While VB.NET or C# would be preferred, I can engineer a solution from almost any language.
非常感谢,
汤姆
推荐答案
您是否仅使用Windows运行的 shell:Libraries
进行了尝试,也只需在命令提示符下进行了尝试. explorer shell:libraries
打开了我所期望的,我不知道
Have you tried simply using Windows-Run shell:Libraries
Just tried this in a command prompt too. explorer shell:libraries
opened what I expectedI don't kn
这篇关于如何以编程方式打开“库"Windows 7中Windows资源管理器中的文件夹?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!