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!