WPF 打開指定文件路徑的文件資源管理器
x
需求是想讓W(xué)PF打開一個指定文件路徑的文件夾,但是搜出來的八成都是<打開文件>的這樣的↓
Microsoft.Win32.OpenFileDialog open_file = new OpenFileDialog(); open_file.ShowDialog();
//...
經(jīng)過搜索,正確是這樣的↓
//System.Diagnostics.Process.Start(AppDomain.CurrentDomain.BaseDirectory);
經(jīng)評論區(qū)指正, 應(yīng)該是這樣的??
Process.Start("explorer.exe", folderPath);

浙公網(wǎng)安備 33010602011771號