This will explain how to Shutdown computer using VB.Net. Using VB.NET source code we can shutdown, restart, or log off a computer with few lines of code.
Here is the code to shut down the PC:
System.Diagnostics.Process.Start(“ShutDown”, “/s”)
Here is the code to restart the pc:
System.Diagnostics.Process.Start(“ShutDown”, “/r”)
Download the Source code:
Leave a reply