Free Student Projects

Shutdown computer using VB.Net

Shutdown computer using VB.Net

This will explain how to shut down the computer using VB.Net. Using VB.NET source code, we can shut down, restart, or log out a machine with a 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 NOW

Exit mobile version