1. 增加打开文件夹,选中文件
parent
88b0431837
commit
e12829bc51
|
|
@ -5,12 +5,14 @@ using System.Diagnostics;
|
|||
using System.Windows;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Shapes;
|
||||
using HeBianGu.Base.WpfBase;
|
||||
using HeBianGu.Service.Mvc;
|
||||
using Hopetry.Models;
|
||||
using Hopetry.Provider;
|
||||
using Hopetry.Services;
|
||||
using Newtonsoft.Json;
|
||||
using Path = System.IO.Path;
|
||||
|
||||
namespace Hopetry.ViewModel.Send;
|
||||
|
||||
|
|
@ -268,7 +270,9 @@ public class DownViewModel : MvcViewModelBase
|
|||
public void DoOpenDownItemFolder(MinioDownloadTask para)
|
||||
{
|
||||
Console.WriteLine($"点击item值:{JsonConvert.SerializeObject(para)}");
|
||||
Process.Start("explorer.exe", para.FilePath);
|
||||
//Process.Start("explorer.exe", para.FilePath);
|
||||
var file = Path.Combine(para.FilePath, para.FileName);
|
||||
Process.Start("explorer.exe", $"/select,\"{file}\"");
|
||||
}
|
||||
|
||||
public void DoCancelDownItem(MinioDownloadTask item)
|
||||
|
|
|
|||
Loading…
Reference in New Issue