📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!

switch off comp with one click

Options
roddydogs
roddydogs Posts: 7,479 Forumite
Part of the Furniture 1,000 Posts Name Dropper
When i Google the above, i get lots of instructions to right click, shortcuts, and type in shortcuts.exe-s-t 0, but when i do this all i get is "This file cannot be found" whys this?

Comments

  • TonyLisaP
    TonyLisaP Posts: 505 Forumite
    What file cannot be found? Shortcuts.exe doesn't sound right shouldn't you be using shutdown.exe
  • toasterman
    toasterman Posts: 758 Forumite
    Part of the Furniture 500 Posts Combo Breaker
    The command to shutdown a pc (that you could then make a shortcut to) would be:
    shutdown.exe -s - t 00
    That will shut the pc down. The bit after t is the time it waits before doing it (in seconds).
    More details of other options I've just found here
  • fwor
    fwor Posts: 6,862 Forumite
    Part of the Furniture 1,000 Posts Name Dropper
    Or if you're running Linux, the equivalent is

    shutdown now -P

    You need to run this as root.
  • roddydogs
    roddydogs Posts: 7,479 Forumite
    Part of the Furniture 1,000 Posts Name Dropper
    TonyLisaP wrote: »
    What file cannot be found? Shortcuts.exe doesn't sound right shouldn't you be using shutdown.exe
    Sorry, i ment shutdown.exe-s-t 00, but it still comes up with "the file shutdown. exe-s-t 00 cannot be found!
  • unrich
    unrich Posts: 814 Forumite
    XP
    you create a batch file with the command in,.
    (eg command is "c:\windows\system32\shutdown.exe -s -f -t 0" )
    (open note pad, type the command in, file save as, c:\windows\system32\shutnow.bat [type=ansi])
    don't miss out spaces as space is an important thing.

    you create a short cut to the batch file shutnow.bat on the desktop (right click, new, short cut)

    you change the icon to the shutdown icon (righ click, properties, change icon)

    you drag the shortcut into the quick start tool bar.

    hey presto

    you accidentally click the button and loose the work you were doing.
  • totalsolutions
    totalsolutions Posts: 3,110 Forumite
    How about a one mouse click method, with keyboad as well?
    tap the "windows" key, click the "Turn Off Computer" and then tap the "enter" key.
    Still one click.
This discussion has been closed.
Meet your Ambassadors

🚀 Getting Started

Hi new member!

Our Getting Started Guide will help you get the most out of the Forum

Categories

  • All Categories
  • 351K Banking & Borrowing
  • 253.1K Reduce Debt & Boost Income
  • 453.6K Spending & Discounts
  • 244K Work, Benefits & Business
  • 599K Mortgages, Homes & Bills
  • 177K Life & Family
  • 257.4K Travel & Transport
  • 1.5M Hobbies & Leisure
  • 16.1K Discuss & Feedback
  • 37.6K Read-Only Boards

Is this how you want to be seen?

We see you are using a default avatar. It takes only a few seconds to pick a picture.