alen.net

alen.net

  • NA
  • 2
  • 0

Shutdown windows

Jun 3 2006 6:37 PM
Im a beginner amd my english is very bad but i hope you understand this. I have been writing simple ultity, and i need to shutdown windows in it. I tried this line but it doesnt work: System.Diagnostics.Process.Start(@"%windir%\System32\shutdown.exe -s -t 00"); How do i do it? Can you please give ma an example?

Answers (3)