Results 1 to 4 of 4

Thread: Shutdown!?!?

  1. #1
    Join Date
    Aug 2004

    Exclamation Unanswered: Shutdown!?!?

    Is there a command that shuts-down a computer? If there is no specific command can you get a code that does Ctrl+Alt+Del then holds Alt and presses U twice??

    I understand this is quite complicated but any help would be appreciated!

    Thank You,


  2. #2
    Join Date
    May 2004
    See the dos command "Shutdown"

    I remember there being a windows program for "restart" but not for shutdown.

  3. #3
    Join Date
    May 2004
    Maybe this will work...and maybe it will not.

    rundll.exe user.exe,exitwindowsexec

  4. #4
    Join Date
    Oct 2004
    In cousin's house
    'Try this in Win98 Box.

    Private Declare Function ExitWindowsEx Lib "user32" (ByVal dwOptions As Long, ByVal dwReserved As Long) As Long

    'Put this code in your procedure
    LNGrESULT = ExitWindowsEx(EWX_SHUTDOWN, 0&)

    'In Xp Box.
    Private Declare Function InitiateSystemShutdown Lib "advapi32.dll" Alias "InitiateSystemShutdownA" (ByVal lpMachineName As String, ByVal lpMessage As String, ByVal dwTimeout As Long, ByVal bForceAppsClosed As Long, ByVal bRebootAfterShutdown As Long) As Long

    'Put this code in your procedure
    lngWait = 2
    lngwt = InitiateSystemShutdown(Text1, "Time to shutdown the server...", lngWait, True, False)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts