How do I programmatically open the “Libraries” folder in Windows Explorer in Windows 7?

只愿长相守 提交于 2019-12-11 12:38:17

问题


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.

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}")

opened "My Documents" instead.

While VB.NET or C# would be preferred, I can engineer a solution from almost any language.

Many thank,

Tom


回答1:


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



来源:https://stackoverflow.com/questions/11943083/how-do-i-programmatically-open-the-libraries-folder-in-windows-explorer-in-win

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!