private static GetFileSystemPath ( |
||
folder | ||
return | string |
private static string GetFileSystemPath(Environment.SpecialFolder folder)
{
// パスを取得
var path = string.Format("{0}{3}{1}{3}{2}",
Environment.GetFolderPath(folder),
Application.CompanyName,
Application.ProductName,
Path.DirectorySeparatorChar.ToString());
// パスのフォルダを作成
lock (typeof(Application))
{
if (!Directory.Exists(path))
{
Directory.CreateDirectory(path);
}
}
return path;
}
MySpecialPath::GetFileSystemPath ( |