opencertdir

This commit is contained in:
rmbgame
2021-05-01 03:00:30 +08:00
parent 034dd57973
commit 44e10a2bee
7 changed files with 55 additions and 14 deletions
@@ -1,4 +1,4 @@
#pragma warning disable CA1416 // 验证平台兼容性
#pragma warning disable CA1416 // 验证平台兼容性
using Microsoft.Win32;
using Microsoft.Win32.TaskScheduler;
using System.Application.Models;
@@ -64,6 +64,19 @@ namespace System.Application.Services.Implementation
}
}
/// <summary>
/// 使用资源管理器打开某个路径
/// </summary>
/// <param name="dirPath"></param>
public void OpenFolder(string dirPath)
{
if (File.Exists(dirPath))
{
Process.Start("explorer.exe", "/select," + dirPath);
}
Process.Start("explorer.exe", dirPath);
}
public string? GetFileName(TextReaderProvider provider)
{
switch (provider)