string SpecialDir(string name = "MyPictures")
{
Dictionary<string, string> specDir = new Dictionary<string, string>();
foreach (System.Environment.SpecialFolder sFolder in Enum.GetValues(typeof(System.Environment.SpecialFolder)))
{
try
{
specDir.Add(sFolder.ToString(), System.Environment.GetFolderPath(sFolder));
}
catch
{
}
}
return specDir[name];
}