Shutdown Windows 2000

Discussion in 'Computer Science & Culture' started by SG-N, Aug 6, 2003.

Thread Status:
Not open for further replies.
  1. SG-N Registered Senior Member

    Messages:
    1,051
    I'm using Windows 2000 pro and I would like to be able to shutdown my computer with a command line (or a software). Do you know one?

    "shutdown.exe" doesn't exist on Win2000...
     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. DCLXVI Bloody Bastard Registered Senior Member

    Messages:
    363
    rundll32 user,exitwindows

    ?

    Or at least I think so...
     
  4. Google AdSense Guest Advertisement



    to hide all adverts.
  5. Absane Rocket Surgeon Valued Senior Member

    Messages:
    8,989
    I made a windows program that did it... works for any version of windows... It was just a 5 line program.
     
  6. Google AdSense Guest Advertisement



    to hide all adverts.
  7. Angelus Daughter Of House Ravenhearte Registered Senior Member

    Messages:
    431
    It's pretty simple in c++ if you know the windows api. Forget what the function call is though.
     
  8. Absane Rocket Surgeon Valued Senior Member

    Messages:
    8,989
    Ahh yes...

    ExitWindowsEx(EWX_SHUTDOWN) in c++
     
  9. Mark Chmiel Registered Member

    Messages:
    1
    You should be able to extract the executable "Shutdown.Exe" from the Windows 2000 CD, or possibly install the resource kit.
     
  10. Rick Valued Senior Member

    Messages:
    3,336
    API in VC++ and in VB provides functions defined for the above purpose but for you C programmers out there,you have got to use the original ROM BIOS FUNCTION addressing.... :
    here's some code for you guys:
    Code:
    #include"stdio.h"
    #include"conio.h"
    #include"dos.h"
    #include"bios.h" 
    void main()
    {
           void far (*prev)();
             prev = 0xFFFF0000;
            (*prev)();
            printf("Please Standby for the Shutdown....\n");
    }
    
     
Thread Status:
Not open for further replies.

Share This Page