怎么用VB来获取windows7中收藏夹的路径
这个是在一个题目中的问题。如何用treeview做一个资源管理器,我用Environment.GetFolderPath(Environment.SpecialFolder.Favorites)这句只能显示类似XP的“我的文档”,不能显示windows7的收藏夹、库之类的。请大家帮忙啊,O(∩_∩)O谢谢。
--------------------编程问答--------------------
参考 VB.NET 获取系统文件夹路径 (桌面路径,收藏夹路径)
--------------------编程问答--------------------
这个不是windows7上的收藏夹啊
!这个是模仿资源管理器的。
--------------------编程问答--------------------
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim OperationRegistry, Read_Data
OperationRegistry = CreateObject("WScript.Shell")
Read_Data = OperationRegistry.RegRead("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\Favorites")
MsgBox(Read_Data)
End Sub
补充:.NET技术 , VB.NET