private void button1_Click(object sender, System.EventArgs e)
{
System.Diagnostics.Process.Start("Shutdown", "-s");
}
-s = shutdown
-r = restart
-t = timed shutdown
-f = hung/busy application instantly without prompting you to end the application manually
And here comes the most awaited thing...
Remote shutdown, All you have do is append this argument along with the previously mentioned arguments (i.e., -s or -r, -f, -t ). You can either specify the computer name or IP address of the target machine that you wish to shutdown/restart.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment