Solved

shut down window xp vb.net 2008

Posted on 2009-05-03
4
286 Views
Last Modified: 2013-11-26
i need vb.net 2008 code to shut down window xp.
0
Comment
Question by:aarontham
  • 3
4 Comments
 
LVL 6

Accepted Solution

by:
Mushq earned 500 total points
ID: 24292751
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
 

Author Comment

by:aarontham
ID: 24292900
Hi Mushq,

i try the code but don't work.
0
 
LVL 6

Expert Comment

by:Mushq
ID: 24292922
Hi,
I don't think there should any problem in that, but let me confirm that at my side.

Best Regards,
Mushi
0
 
LVL 6

Expert Comment

by:Mushq
ID: 24292970
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

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now