No announcement yet.

Win2k quick shutdown options?

  • Filter
  • Time
  • Show
Clear All
new posts

  • Win2k quick shutdown options?

    I was hoping maybe someone with the programming know how might be able to help me out on this one.

    I was wondering if it's at all possible to create some kind of batch file that will quickly shutdown and/or hibernate a win2k box. I've tried creating macros for this, but the only problem is, that all programs are cut off when you hit the shutdown option screen, so the macro recording doesn't pick it up. I've also tried manually putting in the macro commands, but that doesn't work either.

    There has to be some kind of windows system file that you could shutdown/hibernate/restart depending on the switches. If anyone knows, your help would be greatly appreciated.

  • #2
    have you tryed the win9x commands

    might be worth a try

    donate to my team in the ****box rally all proceeds go to the cancer council


    • #3
      tried using those, but still didn't have any luck.


      • #4
        Sorry, but I have not been able to find any command line utilites to use in a .bat-file to fix this.
        But check this program, might be something for you:
        ASoft AutoExit is a FREE application that you can use to shut down, log off, reboot, lock the workstation, Power Off, Hibernate or reboot the shell in Windows. You can do it instantly or you can set a time, date and frequency. This is very useful because you can set a time and start date and a frequency of a week with the option Reboot and the computer will reboot every week at a specific time. There is also an option to shut down a REMOTE computer, all the options are the same as for a local computer, just type in a computer name or IP-Address and set the option as for a local computer. You can display a message box so that you can intercept a shut down by ASoft AutoExit or by Windows. Support for Windows 2000.

        I've not tried it myself, but the description sounded like something you might be looking for.

        // markus


        • #5

          I thank you very very much for this link. I'm starting to play around with program now and the only draw back is that there is no kind of hotkey support or any other shortcut, but I just might be able to pull something off by making a quick macro or something. Would be great if someone could figure out how this program is making the computer go into hibernation without accessing the shutdown option window, then we would all know how to do it, oh well.

          Markus, thanks again, you are my hero of the week .

          <edit> ah crud, it looks like I was too quick to judge on the program. I thought that by click the big red button it would automatically do the hibernation/shutdown/reboot, but instead all it does is set the alarm. This means that you still have to set the time like a few seconds ahead everytime the program is set and then click the activate button. Oh well, at least it's a step forward in figuring this problem out. BTW, Marcus, you're still my hero of the week. Although I can't say it's worth all that much, heheh.

          [This message has been edited by blkdragon6 (edited 07-24-2000).]


          • #6
            Well, I've been doing more tests now that I'm running windows ME on my carcomputer (instead of tests on windows 2000 pro on my home computer) and it seems that c:\windows\rundll32 user,exit windows infact shutdown windows. I've been trying different extensions and what not, but haven't found anything for restart or hibernation. If anyone has more to add to this, that would be great.


            • #7
              Well, I tried a workaround like that on my Windows Me box too, but didn't get it working.

              Even though I used:
              rundll32.exe shell32.dll,SHExitWindowsEx n

              where n is for Windows 98; one or a combination of, the following numbers:
              - 0 - LOGOFF
              - 1 - SHUTDOWN
              - 2 - REBOOT
              - 4 - FORCE
              - 8 - POWEROFF
              The above options can be combined into one value to achieve different results.
              For example, to restart Windows forcefully, without querying any running
              programs, use the following command line:

              rundll32.exe shell32.dll,SHExitWindowsEx 6

              I tried with n = 16, 32, 64 and 128 but with no change. All it did was use the 0 as default to logout.
              So I guess there is no such support in that command for WinME.

              Anyway, after some digging in I've come up with that you can use the "SetSuspendState" API to get it working. But you will have to do some coding then. All info need is in the MSDN.

              I've unfortunately not been able to come up with any better solution but I won't give up.
              I'll send a mail to our discussion aliases and see if someone got a hint.

              // markus


              • #8
                Alright, I have some really good news for windows ME users. I have a friend working on programming a simple program that will do all the shutdown functions (including hibernation, as soon as he figures it out). It should be a simple program that will do various shutdown options according to the switch.

                If anyone has any comments / suggestions/ help / ideas , please post em here.


                • #9
                  where can i donwload WINDOW ME ?


                  • #10
                    can Win2000 shut down/hibernate with the power button like ME does? A soft off option like that would be joy! At the momment I'm running ME, because i can just press the power button (on ATX) to properly shut down the puter or hibernate. I would rather use 2000, but as far as I can see it doesn't support the power button?
                    BjBlaster! Car MP3 & Carputer!

                    "The solution to one problem is only the beginning of another"


                    • #11
                      noproblem >> This is NO trading place, go and buy WinME or get it somwhere else.

                      BJ >> I'm quite sure (not 100% sure) that if you have ACPI (Advanced Configuration and Power Interface) enabled Windows 2000 should handle the Power Button in the same way as Windows ME.

                      // Markus


                      • #12
                        Bj: Yes it will, but you have to have an ACPI compatible mother board and 2000 has to think that you have it (which is the limiting factor usually).. Look in the device manager, the computer will be listed as ACPI compatible right at the top if it is.. (dont try to force 2k to think it is however, easy way to crash system totally).. If it is ACPI compatible you will have the option to change what the power button does..
                        MP3 Cavalier -
                        MP3 Grand Prix -