.net5 winform 打開文件夾
直接使用System.Diagnostics.Process.Start("路徑"),有可能會包拒絕訪問的異常,建議采用以下寫法:
var newPath=“”;
var psi = new System.Diagnostics.ProcessStartInfo() { FileName = newPath, UseShellExecute = true };
System.Diagnostics.Process.Start(psi);

浙公網安備 33010602011771號