Automatic shutdown

Discussion in 'Windows Desktop Systems' started by yupdup, Jan 14, 2002.

  1. yupdup

    yupdup Guest

    Is there a comand i can put in a batch file, so that when run, it will completely shutdown the computer. If i can get that to work then i guess i couls use the scheduler to set a time when my pc will shut itself down everytime. Thanks
  2. AndyP

    AndyP OSNN Senior Addict

    Hmm, there is a thread about that issue here somewhere (searching...) Also there might be a timed shutdown option in your BIOS....
  3. chooch

    chooch Guest

    shutdown -s -f

    -s = full shutdown
    -f = force applications to close

    There are a few more switches, if your interested type shutdown on a dos prompt.
  4. yupdup

    yupdup Guest

    I tried that and its shutdown the computer, but it doesn't turn its self off, like when i shutdown the computer manualy it turns itself off. And i checked my bios and nothing. I did see a article that said to have turn off also "Make a shortcut, and use this as the target:

    %windir%System32 sshutdn.exe 10 /powerdown /DELAY:01"

    but it won't let me put it in the target for a shortcut. something about target directory does not exist. and i am not sure if i can put it in a batch file. Thanks again
  5. Khayman

    Khayman I'm sorry Hal... Political User Folding Team

    in windows 98 i used the following command (make a short cut to)

    c:\windows\rundll32.exe user.exe,ExitWindows

    (possibly may not need the rundll32.exe bit, try with first)

    i havn't tried it on xp, cause i use a program called Hotkeycontrol XP

    get it here

    you can use it to set hot keys for shutting down and restarting and a bunch of other stuff
  6. yupdup

    yupdup Guest

    I got my computer to shut its self down and power off by using the command "tsshutdn." The full command discripotion and option is listed i nthe help section. However if i have a dialup connection running, it will asks if you want to keep the current connection alive. And will sit there till you answer. So i was wondering if anyone knows a command to close a dial-up connection. Thanks again
  7. Khayman

    Khayman I'm sorry Hal... Political User Folding Team

    well the above program will (not the command, that doesn't apper to work in xp )

    or this one

    the actual command is
    For a shortcut to RESTART Windows XP:
    SHUTDOWN -r -t 01

    For a shortcut to SHUT DOWN Windows XP:
    SHUTDOWN -s -t 01

    also at cmd type SHUTDOWN /? for a full list of options, including -f wich forces all to shut down with no warning
  8. yupdup

    yupdup Guest

    The af1 progrm is exactly what i needed Thanks!