Link to home
Start Free TrialLog in
Avatar of ttnhatan
ttnhatan

asked on

Shutdown Computing

In window, if i use a command: "shutdown -t 00 -s" then it will shutdown my computer.

Now, I want to use that command into C# program, How to?
Or have any another way to replace?

Thanks!
Avatar of kirankumar_goura
kirankumar_goura
Flag of India image

Try this out ...
Process.Start("shutdown", "-t 00 -s");
ASKER CERTIFIED SOLUTION
Avatar of monarch_ilhan
monarch_ilhan
Flag of Türkiye image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial