shut down window xp vb.net 2008

i need vb.net 2008 code to shut down window xp.
aaronthamAsked:
Who is Participating?
 
MushqConnect With a Mentor Commented:
Please check the mentioned code.
And the following link for more details.
http://forums.techarena.in/software-development/1104154.htm

Best Regards,
Mushi
    Private Sub btnShutdown_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnShutdown.Click
        System.Diagnostics.Process.Start("shutdown", "-s -t 00")
        'This will make the computer Shutdown
    End Sub

Open in new window

0
 
aaronthamAuthor Commented:
Hi Mushq,

i try the code but don't work.
0
 
MushqCommented:
Hi,
I don't think there should any problem in that, but let me confirm that at my side.

Best Regards,
Mushi
0
 
MushqCommented:
Hi,
I tried that on Windows 2K3 code worked fine. Sorry right now I don't have any XP machine so wouldn't able to test that but surely can do test of that after 6 or 7 hours.

Couple of Questions.
* Are there any other applications opened?
* Are you getting any type of error.

Best Regards,
Mushi
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.