کد خاموش کردن کامپیوتر برای سی شارپ


دات وایت | DotWhite.ir
کد Shut Down, Restart, Log off, Lock, Hibernate برای سی شارپ + پروژه

using های مورد نیاز :

using System.Diagnostics;

using System.Runtime.InteropServices;

کد Shut Down معمولی : 

Process.Start("shutdown""/s /t 0");   

// starts the shutdown application

// the argument /s is to shut down the computer

// the argument /t 0 is to tell the process that

// the specified operation needs to be completed

// after 0 seconds

کد Shut Down سریع : 

Process.Start("shutdown", "/s /f /t 0");



تاریخ انتشار : سه شنبه 14 دي 1395 ساعت: 17:16 | نظرات(0)
برچسب ها : , , , , , , , , , ,

نویسنده :

بازديد : 1089

موضوع: سی شارپ , کد های مفید ,

ادامــه مطلــب