1. 收藏夹路径
System.Environment.GetFolderPath(System.Environment.SpecialFolder.Favorites)
2. 桌面路径
System.Environment.GetFolderPath(System.Environment.SpecialFolder.Desktop)
更多请见枚举类
System.Environment.SpecialFolder
还可以通过注册表获取文件路径,比如墙纸
墙纸完整路径存于注册表 HKEY_CURRENT_USER\Control Panel\Desktop下的Wallpaper子键内,你用registry类读就是了
string wallpaper =(string)Registry.GetValue(@"HKEY_CURRENT_USER\Control Panel\Desktop", "wallpaper", "");