Skip to content

Instantly share code, notes, and snippets.

@veigr
Created May 20, 2014 07:13
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
WindowsAPICodePack.Shellを使ってライブラリのDefaultSaveFolderを取得する
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