By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,730 Members | 1,567 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,730 IT Pros & Developers. It's quick & easy.

Hard Drive Low in "Space" event !

P: n/a
Hi All,

I would like to write a windows service that will "Check" any problems on my
computer. For exemple, I would like to pop up a windows if my Hard drive is
low in "space" (maybe 5 % free space). How may I do it ? Does VS.NET provide
a tools for that...
I also would like, for exemple, know if my CPU temperature is too high, or
if my Laptop battery is too "low"...

Any help ?

Regards,

Eddie
Nov 20 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Hi Eddie,

Some things are easy to do when you use the management class
(WMI)
http://msdn.microsoft.com/library/de...ClassTopic.asp
However not all.

I hope this helps?

Cor
Nov 20 '05 #2

P: n/a
* "Eddie" <ma*************@videotron.ca> scripsit:
I would like to write a windows service that will "Check" any problems on my
computer. For exemple, I would like to pop up a windows if my Hard drive is
low in "space" (maybe 5 % free space). How may I do it ? Does VS.NET provide
a tools for that...
I doubt that.
I also would like, for exemple, know if my CPU temperature is too high, or
if my Laptop battery is too "low"...


WMI + 'Win32_TemperatureProbe'.

<URL:http://www.google.de/groups?selm=uk%23UD5APDHA.3664%40tk2msftngp13.phx. gbl>

For the battery, cou can translate this VB6 sample to VB.NET:

<URL:http://www.shadoware.de/files/vb/powerstatus.zip>

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #3

P: n/a
Thank you... where can I find a complete list of "ManagementClass" like
'Win32_TemperatureProbe' or Win32_LogicalDisk ?
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:2h*************@uni-berlin.de...
* "Eddie" <ma*************@videotron.ca> scripsit:
I would like to write a windows service that will "Check" any problems on my computer. For exemple, I would like to pop up a windows if my Hard drive is low in "space" (maybe 5 % free space). How may I do it ? Does VS.NET provide a tools for that...
I doubt that.
I also would like, for exemple, know if my CPU temperature is too high, or if my Laptop battery is too "low"...


WMI + 'Win32_TemperatureProbe'.

<URL:http://www.google.de/groups?selm=uk%...2msftngp13.phx.
gbl>
For the battery, cou can translate this VB6 sample to VB.NET:

<URL:http://www.shadoware.de/files/vb/powerstatus.zip>

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 20 '05 #4

P: n/a
* "Eddie" <ma*************@videotron.ca> scripsit:
Thank you... where can I find a complete list of "ManagementClass" like
'Win32_TemperatureProbe' or Win32_LogicalDisk ?


<URL:http://msdn.microsoft.com/library/en-us/wmisdk/wmi/computer_system_hardware_classes.asp>

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.