Shutdown computer using VB.Net

Shutdown computer using VB.Net

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:

Shutdown computer using VB.Net

Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Inline Feedbacks
View all comments