如何打开 Windows 7 库,如 Documents
、Pictures
、Music
、Videos
和所有其他从我的应用程序自定义库?
我尝试打开 explorer.exe Libraries\Documents
但它不起作用。
最佳答案
找到AppData目录:
Dim appData As String = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)
找到文档快捷方式并在资源管理器中打开它:
For Each file As String In Directory.GetFiles(appData, "Documents.library-ms", SearchOption.AllDirectories)
Process.Start(file)
Next
关于c# - 在 Windows 资源管理器中打开 Windows 7 库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9000785/