• Way to Turn Off Computer Programically After Shutd (VB 6 Windows 2000)

    Home » Forums » AskWoody support » Productivity software by function » Visual Basic for Applications » Way to Turn Off Computer Programically After Shutd (VB 6 Windows 2000)

    Author
    Topic
    #360602

    Way to Turn Off Computer Programically After Shutdown?

    Hi,

    I have learned to shutdown Windows 2000 programically using the API ExitWindowsEx Lib, but the computer will not turn off; I get an “Ok to turn off computer” message box; How can I programically turn off the computer so the computer “fully” shuts down? Or does the Windows operating system prevent this?

    Thank you!

    –Llyal

    Viewing 1 reply thread
    Author
    Replies
    • #543442

      What you’re looking for is power management software. There are various ones out there for different operating systems, so I’d suggest a http://www.google.com search.

    • #543458

      A search at MS shows lots of bugs in this function, and also mentions a utility called Shutdown.exe in the resource kit as an alternative.

      • #543567

        jscher2000,

        I have also heard that the WINPowerDown API is unreliable; I am going to try GUI automation to shutdown windows like a user does; since this is not a commercial application, i don’t care how the shutdown gets done;

        thanksto all for the help!

        –Llyal

    Viewing 1 reply thread
    Reply To: Way to Turn Off Computer Programically After Shutd (VB 6 Windows 2000)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: