Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Win2k quick shutdown options?

  1. #1
    Constant Bitrate
    Join Date
    Dec 1999
    Location
    Santa Ana, CA 92704
    Posts
    201

    Post 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. #2
    Variable Bitrate
    Join Date
    Feb 2000
    Location
    hoppers crossing, victoria, australia
    Posts
    282

    Post

    have you tryed the win9x commands

    might be worth a try

    cheers
    pcman
    donate to my team in the ****box rally all proceeds go to the cancer council http://www.everydayhero.com.au/dodgy_mechanics

  3. #3
    Constant Bitrate
    Join Date
    Dec 1999
    Location
    Santa Ana, CA 92704
    Posts
    201

    Post

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

  4. #4
    Newbie
    Join Date
    Nov 1999
    Location
    Sweden
    Posts
    53

    Unhappy

    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: http://members.xoom.com/A__SOFT/down...autoexit30.zip
    ---------------------------------------------
    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. #5
    Constant Bitrate
    Join Date
    Dec 1999
    Location
    Santa Ana, CA 92704
    Posts
    201

    Post

    Markus,

    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. #6
    Constant Bitrate
    Join Date
    Dec 1999
    Location
    Santa Ana, CA 92704
    Posts
    201

    Post

    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. #7
    Newbie
    Join Date
    Nov 1999
    Location
    Sweden
    Posts
    53

    Lightbulb

    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. #8
    Constant Bitrate
    Join Date
    Dec 1999
    Location
    Santa Ana, CA 92704
    Posts
    201

    Post

    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. #9
    Constant Bitrate
    Join Date
    Jun 2000
    Location
    landing, NJ, USA
    Posts
    134

    Post

    where can i donwload WINDOW ME ?

  10. #10
    Bj
    Bj is offline
    Variable Bitrate
    Join Date
    Aug 2000
    Location
    Perth W.A Australia
    Posts
    290

    Post

    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!
    bjblaster.com

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

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

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