473,395 Members | 1,696 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

How to check the status of an UPS?

I would like to check or be notify by Windows that the system is running on
UPS battery and then I would prompt up a message informing the user to save
their work and logout.

The UPS software I am using, UPSCommander seems to register itself as a
Windows Service and appears in the Service List as UPSCommanderService.
I try to use the ServiceController control in VB.NET to query its state but
what I get is Stop, Running, etc. What I want is something like Battery Mode
On, Low Battery Indicator and stuff like that.

Please help!!!

Thank You
Woo
Nov 21 '05 #1
2 2045
Hi,

You can use the wmi for that. Take a look at
win32_uninterruptiblepowersupply class.

http://msdn.microsoft.com/library/de...owersupply.asp

Ken
-------------------
"Woo Mun Foong" <mf***@yahoo.com> wrote in message
news:87**********************************@microsof t.com...
I would like to check or be notify by Windows that the system is running on
UPS battery and then I would prompt up a message informing the user to save
their work and logout.

The UPS software I am using, UPSCommander seems to register itself as a
Windows Service and appears in the Service List as UPSCommanderService.
I try to use the ServiceController control in VB.NET to query its state but
what I get is Stop, Running, etc. What I want is something like Battery Mode
On, Low Battery Indicator and stuff like that.

Please help!!!

Thank You
Woo
Nov 21 '05 #2
Hi,

I am new to the WMI.
My clients are using Windows XP Home, do they need to install anything extra
beside Framework 1.1 ?

"Ken Tucker [MVP]" wrote:
Hi,

You can use the wmi for that. Take a look at
win32_uninterruptiblepowersupply class.

http://msdn.microsoft.com/library/de...owersupply.asp

Ken
-------------------
"Woo Mun Foong" <mf***@yahoo.com> wrote in message
news:87**********************************@microsof t.com...
I would like to check or be notify by Windows that the system is running on
UPS battery and then I would prompt up a message informing the user to save
their work and logout.

The UPS software I am using, UPSCommander seems to register itself as a
Windows Service and appears in the Service List as UPSCommanderService.
I try to use the ServiceController control in VB.NET to query its state but
what I get is Stop, Running, etc. What I want is something like Battery Mode
On, Low Battery Indicator and stuff like that.

Please help!!!

Thank You
Woo

Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Dakanali | last post by:
I have a previous form which user search if there is a domain name. Give the domain name and in xml send the data from domainName=rewuest.form("domainname") to the specify url which is below and i...
2
by: Doug Baroter | last post by:
Hi, DDLs and DMLs: create table #job (jobID int identity(1,1) primary key, jobName varchar(25) unique not null, jobEndDate dateTime, jobComplete bit default(0), check (( is null and = 0) OR (...
15
by: tabonni | last post by:
I want to check each button groups and save the checked value into a 2 dimensional array. But, it doesn't work. Could anyone tell me what's wrong with my code. My code is as follow: <html>...
2
by: Karl Roes | last post by:
Thanks Turtle, but ... what for ? Could you please explain a little more. I am wanting to know the status of all check boxes in a continuous form ie. all are 'ticked'. MacDermott wrote - ...
0
by: Fossie | last post by:
Hi, I need to check that someone signing up is listed in an xml file. I am using a customer membership provider for Access and trying to integrate the xml check into that. Am I on the right track?...
4
by: John Salerno | last post by:
My code is below. The main focus would be on the OnStart method. I want to make sure that a positive integer is entered in the input box. At first I tried an if/else clause, then switched to...
16
by: Brian Tkatch | last post by:
Is there a way to check the order in which SET INTEGRITY needs to be applied? This would be for a script with a dynamic list of TABLEs. B.
1
by: Spectre1337 | last post by:
Hello, it seems like the check constraint validation of MS SQL Server Management Studio express is horribly, horribly broken. Either that or I'm using it wrong. I hope it's the latter. I'm...
1
by: polycom | last post by:
Hi, I am coding a mysql health check script. The logic is to execute the commands (only once)show status,show slave status,show variables and fetch the variable name and value in a hash refer or...
0
by: Edwin.Madari | last post by:
updated creature running in its own thread will get you started. try it foryourself, change sleep times per your need. import os, sys, threading, time class Creature: def __init__(self,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.