mirror of
https://github.com/BeyondDimension/SteamTools.git
synced 2026-10-28 23:19:53 +08:00
opencertdir
This commit is contained in:
+14
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user