Created
May 20, 2014 07:13
-
-
Save veigr/944cde54a4e69486496b to your computer and use it in GitHub Desktop.
WindowsAPICodePack.Shellを使ってライブラリのDefaultSaveFolderを取得する
This file contains 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); | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment