Auto Shutdown

For system help, all hardware / software topics NOTE: use Coders Corner for all coders topics.

Moderators: Krom, Grendel

Post Reply
User avatar
Spidey
DBB Grand Master
DBB Grand Master
Posts: 10725
Joined: Thu Jun 28, 2001 2:01 am
Location: Earth

Auto Shutdown

Post 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
User avatar
Grendel
3d Pro Master
3d Pro Master
Posts: 4390
Joined: Mon Oct 28, 2002 3:01 am
Location: Corvallis OR, USA

Post by Grendel »

Does ME have a sheduler ? See this for how to do it from a batch job.
ImageImage
User avatar
Spidey
DBB Grand Master
DBB Grand Master
Posts: 10725
Joined: Thu Jun 28, 2001 2:01 am
Location: Earth

Post 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.
User avatar
Thenior
DBB Captain
DBB Captain
Posts: 667
Joined: Wed Oct 06, 2004 9:40 am

Post 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.
User avatar
TechPro
DBB Admiral
DBB Admiral
Posts: 1520
Joined: Thu May 20, 2004 11:51 pm

Re:

Post 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.
User avatar
Spidey
DBB Grand Master
DBB Grand Master
Posts: 10725
Joined: Thu Jun 28, 2001 2:01 am
Location: Earth

Post by Spidey »

Thanks, got it working.
Post Reply