Im making a client-server application so i need to shutdown the remote pc Silently .. i’ve read about shutdown arguments in Commands Prompt shutdown/? .. but i still don’t know the right arguments to do the commands below.
so how do i do those commands locally without (/m) ?
void ShutDown(string cmd)
{
Process.Start("shutdown", cmd);
}
thanks in advance.
Try this:
Note:While using cmd for Sleep Need to off Hibernation else sys will be hibernated.