1. You are viewing our forum as a guest. For full access please Register. WindowsBBS.com is completely free, paid for by advertisers and donations.

Resolved Command line shut down script

Discussion in 'Other PC Software' started by smarsh, 2010/12/01.

  1. 2010/12/01
    smarsh

    smarsh Inactive Thread Starter

    Joined:
    2010/08/01
    Messages:
    7
    Likes Received:
    0
    Hi,

    I'm trying to do a little project with an embedded board and XP embedded OS to control a little machine. The board will have no monitor, so I need a little routine that when a key is pressed on the keyboard, it invokes a proper Windows shutdown.

    I want to have the letter "Z" trigger the action. I've found that the sequence I want to run is ultimately this
    Code:
    SHUTDOWN -s -t 01
    Can anyone give me some help in turning that into a full script?

    I'll put the routine in the start folder so that it's always in the background waiting for "Z ", but is there anything else that has to be done since the machine controller software will be the "active" program?

    Thanks guys!
     
  2. 2010/12/01
    ephemarial

    ephemarial Well-Known Member

    Joined:
    2002/02/26
    Messages:
    426
    Likes Received:
    27
    Just map the sequence to the Z key.

    See the thread under yours for Autokey Thread for Autokey

    or go here for various free utilities including Autokey
     

  3. to hide this advert.

  4. 2010/12/01
    smarsh

    smarsh Inactive Thread Starter

    Joined:
    2010/08/01
    Messages:
    7
    Likes Received:
    0
    Very cool. Thanks! ;)
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.