How to shutdown, restart or logoff - VB#23 ~ VBTheory™ Tutorials

Friday, October 10, 2014

How to shutdown, restart or logoff - VB#23

Code:
Shutdown:
System.Diagnostics.Process.Start("shutdown", "-s -t 00")

Restart:
System.Diagnostics.Process.Start("shutdown", "-r -t 00")

LogOff:
System.Diagnostics.Process.Start("shutdown", "-l -t 00")



Share