/// <summary> /// バックアップディレクトリのパスを取得する /// </summary> /// <returns>バックアップディレクトリのパス</returns> public static string GetBackupDirectoryPath() { string assemblyLocation = CommonDirectoryUtil.GetCommonProgramDataAppliPath(); String dirPath = Path.GetDirectoryName(assemblyLocation) + "\\Backup"; return(dirPath); }
/// <summary> /// ファイルコンフィグのパスを取得する /// </summary> /// <returns>ファイルコンフィグのパス</returns> public static string GetFileBoxConfigPath() { string assemblyLocation = CommonDirectoryUtil.GetCommonProgramDataAppliPath(); String dirPath = Path.GetDirectoryName(assemblyLocation) + "\\FileBoxConfig.xml"; return(dirPath); }
private string GetDirectoryPath() { string path = CommonDirectoryUtil.GetAdsDirectoryPath(); if (!System.IO.Directory.Exists(path)) { System.IO.Directory.CreateDirectory(path); } return(path); }
private String GetTempFolderPath(SaveEmergencyMode mode) { switch (mode) { case SaveEmergencyMode.AssemblyTemp: { string assemblyLocation = CommonDirectoryUtil.GetCommonProgramDataAppliPath(); String dirPath = Path.GetDirectoryName(assemblyLocation); return(dirPath + "\\temp"); } case SaveEmergencyMode.DocumentTemp: { return(System.Environment.GetFolderPath(Environment.SpecialFolder.Personal)); } case SaveEmergencyMode.FinalTemp: default: { return(System.Environment.GetFolderPath(Environment.SpecialFolder.Desktop)); } } }