打开Windows 7库中的Windows资源管理器 [英] Open a Windows 7 Library in Windows Explorer

查看:131
本文介绍了打开Windows 7库中的Windows资源管理器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何打开Windows 7库像文件图片音乐视频和我的应用程序的所有其他自定义库?

How do I open a Windows 7 Library like Documents, Pictures, Music, Videos and all other custom libraries from my app?

我试图打开的Explorer.exe库\文件,但它不工作。

I tried opening explorer.exe Libraries\Documents but it doesn't work.

推荐答案

查找AppData目录:

Find the AppData directory:

Dim appData As String = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)

查找文件快捷方式,然后在资源管理器中打开它:

Find the documents shortcut and open it in explorer:

For Each file As String In Directory.GetFiles(appData, "Documents.library-ms", SearchOption.AllDirectories)
    Process.Start(file)
Next

这篇关于打开Windows 7库中的Windows资源管理器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆