IShellLibrary APIを叩くしか無さそうな雰囲気だったので、WindowsAPICodePackを使うという手抜き。
下記はピクチャのパス。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using Microsoft.WindowsAPICodePack.Shell; | |
namespace ConsoleApplication1 | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
using (var lib = ShellLibrary.Load(KnownFolders.PicturesLibrary, true)) | |
{ | |
Console.WriteLine(lib.DefaultSaveFolder); | |
} | |
} | |
} | |
} |