Click here to Skip to main content
15,889,096 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hai All,


I want to shutdown a remote or local system with the time specified in this format
2:10 PM. Help Me through c#. This is to shutdown windows-XP and windows-servers
Posted
Comments
Aravind Ravindranath Gopi 25-Mar-11 0:47am    
Any specific reason you want to do this using only C# ,there are many monitoring tools available in market . HPOV is one such products .

1 solution

try it you can make a batch file(file with .bat extension) sample is as follow

shutdown -s -m \\computername -t xx

write the above command at notepad with suitable computername, -t xx is set of second after which you want to shutdown. save file with .bat extension and just call it from a simple c# program..

hope it would help you.. or give a initial idea..
 
Share this answer
 
Comments
Bhavna v 25-Mar-11 6:42am    
Nice Tips

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900