how to turn off computer
-
C# code: System.Diagnostics.Process.Start("ShutDown", "/s"); /s for ShutDown System.Diagnostics.Process.Start("ShutDown", "/r"); /r for Restart System.Diagnostics.Process.Start("ShutDown", "/l"); /l for LogOff Srinivas Jadhav Mb: 9890596778
-
Vega02 wrote:
Redirecting to C# forum
Why? There is nothing in the C# language that will do this. However there may be stuff in the .NET Framework that might so I'd say this forum is a valid place to put this question.
Upcoming Scottish Developers events: * UK Security Evangelists On Tour (2nd November, Edinburgh) * Developer Day Scotland: are you interested in speaking or attending? My: Website | Blog
-
Oh... I see - The OP cross posted to the C# forum where you had already answered the question. Why didn't you say that? It looks like you are saying the C# forum was a better place for the question.
Upcoming Scottish Developers events: * UK Security Evangelists On Tour (2nd November, Edinburgh) * Developer Day Scotland: are you interested in speaking or attending? My: Website | Blog
-
Oh... I see - The OP cross posted to the C# forum where you had already answered the question. Why didn't you say that? It looks like you are saying the C# forum was a better place for the question.
Upcoming Scottish Developers events: * UK Security Evangelists On Tour (2nd November, Edinburgh) * Developer Day Scotland: are you interested in speaking or attending? My: Website | Blog
Colin Angus Mackay wrote:
Oh... I see - The OP cross posted to the C# forum where you had already answered the question. Why didn't you say that? It looks like you are saying the C# forum was a better place for the question.
No, you're right. I was just trying to redirect all follow-up comments to the other thread in the C# forum to keep them consolidated, but I was working too quickly and didn't clarify that point. Apparently that didn't work out as well as I'd hoped. :-D