📅  最后修改于: 2022-03-11 14:48:38.243000             🧑  作者: Mango
var psi = new ProcessStartInfo("shutdown","/s /t 0");
psi.CreateNoWindow = true;
psi.UseShellExecute = false;
Process.Start(psi);
// to avoid creating window