Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Shutdown PC With C# Command 1

Status
Not open for further replies.

vtops

IS-IT--Management
Oct 13, 2005
63
GR
Dear All,

I Have made a backup application and i am wondering if there is any command in c# that turns off the pc after finishing backup procedure?

I Found a dos command (shutdown) on windows xp which i can execute it as proccess but there isn't in other Operating Systems.
So I am looking for a direct command in C#

Thanks a lot
 
Thanks For Your Help jaughknee I wiil try it tonight
 
that's pretty special. a bit densely commented, but looks like it does what is required.

thanks.


mr s. <;)

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top