He wanted to shut down the windows,
there is a file
shutdown.exe in system32 directory of your windows,you should execute it,
Code:
System.Diagnostics.Process.Start("shutdown.exe","/s");
(run shutdown.exe from the Command Prompt and check for other parameters)
_____________
Mehdi.
software student.