473,382 Members | 1,329 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,382 software developers and data experts.

Hard Drive Low in "Space" event !

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
4 2382
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
* "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
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
* "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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Xah Lee | last post by:
how to represent the unicode "em space" in regex? e.g. i want do something like this: fracture=re.split(r'\342371*\|\342371*',myline,re.U) Xah xah@xahlee.org ∑ http://xahlee.org/
2
by: Petr Jakes | last post by:
Hi, I am trying to set-up communication to the coin change-giver from my Linux box using the Python code. The change giver uses MDB (Multi Drop Bus) serial protocol to communicate with the...
0
by: serge | last post by:
I have an XML file with an XSD file. When i am reading the XML file and putting its content into a DataSet I notice that the field that has a single space character is being converted to a field...
2
by: Kannan | last post by:
In section 7.19.6.1 on ISO C specification, it says about a format character "space". When and how we will use this "space" format? I mean is there a usage, for e.g. like printf("%space",...); ? ...
2
by: Lloyd Dupont | last post by:
I am "defining" an XML schema. In fact I'm not really writing any schema but I am writing an XML writer and reader for my data. It's all custom XML and I would like it to be XML tool friendly. ...
2
by: Sound | last post by:
Enter space bar for field names and save the field.The field shoud not get saved and an alert should be there as"Space bars are not allowed" Add a field without giving any name and save the...
4
by: nickyeng | last post by:
i read a file, and the file contains this: +-------------------+ | | +-------------------+ when i read it into array, and then display it out to cout exactly the same as...
1
by: pippyn | last post by:
I'm programming for a CE device with reduced key board, no mouse, and no touch screen. As such, I have to tab from button to button to get the focus on the button i want. Then to invoke the button...
5
blazedaces
by: blazedaces | last post by:
Ok, so you know my problem, java is running out of memory reading with SAX, the event-based xml parser intended more-so than DOM for extremely large files. I'll try to explain what I've been doing...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.