[英]How do I programmatically open the “Libraries” folder in Windows Explorer in Windows 7?
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. 注意,用户可能已经重新定义了Windows资源管理器的默认窗口,因此只使用
Process.Start
或IShellDispatch.Open
打开“”是不可接受的。
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
. 请注意,Libraries文件夹是文件夹ID为
FOLDERID_Libraries
的已知文件夹。 Opening up using the associated GUID for FOLDERID_Libraries
using 使用
FOLDERID_Libraries
的关联GUID打开
Process.Start("explorer.exe", "::{1B3EA5DC-B587-4786-B4EF-BD1DC332AEAE}")
opened "My Documents" instead. 打开“我的文件”而不是。
While VB.NET or C# would be preferred, I can engineer a solution from almost any language. 虽然VB.NET或C#是首选,但我可以用几乎任何语言设计解决方案。
Many thank, 多谢,
Tom 汤姆
Have you tried simply using Windows-Run shell:Libraries
Just tried this in a command prompt too. 您是否尝试过简单地使用Windows-Run
shell:Libraries
也是在命令提示符下尝试过的。 explorer shell:libraries
opened what I expectedI don't kn explorer shell:libraries
打开了我预期的我不知道的东西
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.