PC Review


Reply
Thread Tools Rate Thread

Run Program on Critical Battery Level

 
 
Megabyte
Guest
Posts: n/a
 
      7th Sep 2008
I found a post asking a similar question to this, but the answer does not
really help me, so I'll ask again.

I'm looking to find out how to run a program (or script/batch file
preferably) that will autorun when the battery reaches critical level.

The reason I ask is that I have my PC and a Western Digital MyBook World
Edition network drive connected to my UPS. For those who don't know, it
runs a version of linux, and I have hacked into the box and added a pointer
that looks for a connection on a specific port and when it gets one, shuts
down the box properly.

Since I have my PC hibernate when my UPS is almost dead, I'd like to run a
script that launches telnet to a specific host on a specific port. When
that completes, Hibernate.

This was easy in XP, as there was a "Run Program" option in the power
options. I can't seem to find it in Vista.

Please help,

Thanks
-- ET


 
Reply With Quote
 
 
 
 
Rick Rogers
Guest
Posts: n/a
 
      7th Sep 2008
Hi,

Haven't tried it myself yet, but I should think you'd be able to do this
with Task Scheduler by setting an event trigger.

--
Best of Luck,

Rick Rogers, aka "Nutcase" - Microsoft MVP
http://mvp.support.microsoft.com/
Windows help - www.rickrogers.org
My thoughts http://rick-mvp.blogspot.com

"Megabyte" <(E-Mail Removed)> wrote in message
news:A35E2ECD-7EA8-41DB-8621-(E-Mail Removed)...
>I found a post asking a similar question to this, but the answer does not
>really help me, so I'll ask again.
>
> I'm looking to find out how to run a program (or script/batch file
> preferably) that will autorun when the battery reaches critical level.
>
> The reason I ask is that I have my PC and a Western Digital MyBook World
> Edition network drive connected to my UPS. For those who don't know, it
> runs a version of linux, and I have hacked into the box and added a
> pointer that looks for a connection on a specific port and when it gets
> one, shuts down the box properly.
>
> Since I have my PC hibernate when my UPS is almost dead, I'd like to run a
> script that launches telnet to a specific host on a specific port. When
> that completes, Hibernate.
>
> This was easy in XP, as there was a "Run Program" option in the power
> options. I can't seem to find it in Vista.
>
> Please help,
>
> Thanks
> -- ET
>
>


 
Reply With Quote
 
Megabyte
Guest
Posts: n/a
 
      8th Sep 2008
I had considered this, and in fact that's how I have it set up now...

However, the same event is logged whether I manually put the PC to sleep or
it goes to sleep due to a power event, so far as I can tell...

There's got to be a registry entry for it somewhere, I just have not been
able to locate it. I find it unlikely that Microsoft would remove
functionality. I find it more likely that they would hide potentially
dangerous functionality so as to protect those who do not understand the
implications of just "running a program" on a power event...

-- ET


"Rick Rogers" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> Haven't tried it myself yet, but I should think you'd be able to do this
> with Task Scheduler by setting an event trigger.
>
> --
> Best of Luck,
>
> Rick Rogers, aka "Nutcase" - Microsoft MVP
> http://mvp.support.microsoft.com/
> Windows help - www.rickrogers.org
> My thoughts http://rick-mvp.blogspot.com
>
> "Megabyte" <(E-Mail Removed)> wrote in message
> news:A35E2ECD-7EA8-41DB-8621-(E-Mail Removed)...
>>I found a post asking a similar question to this, but the answer does not
>>really help me, so I'll ask again.
>>
>> I'm looking to find out how to run a program (or script/batch file
>> preferably) that will autorun when the battery reaches critical level.
>>
>> The reason I ask is that I have my PC and a Western Digital MyBook World
>> Edition network drive connected to my UPS. For those who don't know, it
>> runs a version of linux, and I have hacked into the box and added a
>> pointer that looks for a connection on a specific port and when it gets
>> one, shuts down the box properly.
>>
>> Since I have my PC hibernate when my UPS is almost dead, I'd like to run
>> a script that launches telnet to a specific host on a specific port.
>> When that completes, Hibernate.
>>
>> This was easy in XP, as there was a "Run Program" option in the power
>> options. I can't seem to find it in Vista.
>>
>> Please help,
>>
>> Thanks
>> -- ET
>>
>>

>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
No Alarm on Low or Critical Battery frank1492 Windows Vista General Discussion 3 7th Jul 2008 05:36 AM
CSRSS uses 100% cpu when battery falls to 'critical' level =?Utf-8?B?RGF2ZQ==?= Windows XP Performance 0 15th Sep 2007 01:26 PM
Run Program on Low/Critical Battery in Vista =?Utf-8?B?THVzaXB1cnI=?= Windows Vista Performance 0 19th Jun 2007 07:46 AM
Set Low / Critical Battery Alarm =?Utf-8?B?S2F5LVV3ZQ==?= Windows XP General 0 3rd May 2006 04:05 PM
Hibernates when 1st battery hits critical, 2nd battery has full ch =?Utf-8?B?cGxhc21hMTE=?= Windows XP Help 1 7th May 2005 01:50 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:21 AM.