Page 1 of 1

Auto Shutdown

Posted: Mon Jan 17, 2011 12:30 am
by Spidey
I want to schedule an ME box to shut down each night at a specific time. Can this be done in a simple way, without any 3rd party software?

VB to send some keystrokes?

Spidey

Posted: Mon Jan 17, 2011 3:31 am
by Grendel
Does ME have a sheduler ? See this for how to do it from a batch job.

Posted: Mon Jan 17, 2011 8:46 am
by Spidey
Yea it does, but I’m not sure how to schedule a bat file…I’ll have a look when I get to work.

edit

I looked it up, and it seems pretty simple…I’ll let you know.

Posted: Mon Jan 17, 2011 1:06 pm
by Thenior
yeah, it's pretty easy to do. Just don't name the .bat file \"shutdown.bat\". You can name it \"turnmeoff.bat\" or whatever, but apparently shutdown causes it to not work.

Re:

Posted: Mon Jan 17, 2011 10:19 pm
by TechPro
Thenior wrote:yeah, it's pretty easy to do. Just don't name the .bat file "shutdown.bat". You can name it "turnmeoff.bat" or whatever, but apparently shutdown causes it to not work.
That's because there is an actual "shutdown" command.

I don't remember if ME comes with the "shutdown" executable included. Easy test: At a command prompt type in shutdown and press enter. If the executable is present, you will see some information about the shutdown parameters.

There is actually quite a bit of useful info "out there".

Here is a good list of shutdown commands for various OS versions (ME is listed): http://www.robvanderwoude.com/shutdown.php

Here is some great information on doing batch files: http://www.robvanderwoude.com/batchfiles.php

SysInternal's "PsShutdown" might be a good tool for you: http://technet.microsoft.com/en-us/sysi ... 97541.aspx

Jorgen Bosman's PowerOff utility might be all you need. Ran without parameters, it gives you a GUI and includes the ability to schedule your shutdown commands from inside that GUI.

Cheers.

Posted: Mon Jan 17, 2011 10:52 pm
by Spidey
Thanks, got it working.