问题
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