c# - 在 Windows 资源管理器中打开 Windows 7 库

标签 c# .net vb.net winapi windows-7

如何打开 Windows 7 库,如 DocumentsPicturesMusicVideos 和所有其他从我的应用程序自定义库?

Libraries

我尝试打开 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/

相关文章:

.net - ConfigureAwait(false) 与 ASP.NET Core 相关吗?

asp.net - 错误 : "Capacity was less than the current size" with ASP. NET DataPager 控件

vb.net - Visual Studio 2010 调试器不再因错误而停止

c# - 获取 Windows 用户显示名称的可靠方法

c# - 发布Web API时Dotnet发布不会创建文件夹

c# - 对缓冲的 Observable 进行排序

.net - 您使用什么工具进行契约(Contract)设计?

C# ASP.NET 通过通用方法绑定(bind)控件

.net - IWindsorContainer 作为类的参数

c# - 有没有一种很好的方法可以将一个 int 分成两个短裤(.NET)?