简体   繁体   English

如何以编程方式在Windows 7中的Windows资源管理器中打开“库”文件夹?

[英]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.StartIShellDispatch.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.

相关问题 如何打开 windows 资源管理器 window 并选择特定文件夹 - How do I open a windows explorer window with a specific folder selected 如何以编程方式自动从Windows资源管理器中打开文件 - How do I automate the opening of a file from Windows Explorer programmatically 如何在Windows资源管理器中使用.NET或Windows API更改特定文件夹中的View列? (Windows 7及更高版本) - How do I use .NET or the Windows API to change the View columns in a particular folder in Windows Explorer? (Windows 7 and Up) 如何以编程方式复制在Windows下锁定的文件或文件夹? - How do I copy a file or folder that is locked under windows programmatically? 没有Process类的情况下,如何在Windows 8文件浏览器中打开应用程序文件夹? - How can I open the application folder in the Windows 8 file explorer without the Process class? 将Windows资源管理器打开到Combined-GUID文件夹 - Open Windows Explorer to a Combined-GUID folder 如何以编程方式重新启动 Windows 资源管理器进程 - How to programmatically restart windows explorer process 如何以编程方式创建Windows窗体? - How do I programmatically create a windows form? 从 .NET 以编程方式访问“打开方式”Windows 资源管理器菜单列表 - Programmatically access the “Open with” Windows Explorer menu list from .NET 在Windows资源管理器中打开Windows 7库 - Open a Windows 7 Library in Windows Explorer
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM