لرفا آموزش طراحی سایت و برنامه نویسی بازارکار
#سی_شارپ
▪️کد خاموش کردن کامپیوتر Process p = newProcess();
p.StartInfo.FileName
= "
cmd.exe
";
p.StartInfo.UseShellExecute
= false;
p.StartInfo.RedirectStandardInput
= true;
p.StartInfo.RedirectStandardOutput
= true;
p.Start
(); StreamWriter sw =
p.StandardInput
;
sw.WriteLine
("shutdown -s");
sw.Close
();
p.Close
(); 😐عالیه تست کنید😂 🖥 💻 📱 لِرفا آموزش کامپیوتر و برنامه نویسی بازارکار 🆔
@lerfaa