checking hardisk space...

  • Thread starter Thread starter Ginny
  • Start date Start date
G

Ginny

Hi,
I want to check the hard disk space on c drive and raise an alra or email
notification if the free space goes below a permissible level. How can I do
this? Can I use performance counter or WMI or Win 32 api?? PLease assist.
Shall I implement this is as a windows service or in my windows application
?? please assist.
 
Hi,
I want to check the hard disk space on c drive and raise an alra or email
notification if the free space goes below a permissible level. How can I do
this? Can I use performance counter or WMI or Win 32 api?? PLease assist.
Shall I implement this is as a windows service or in my windows application
?? please assist.

Find freespace using WMI:

http://tinyurl.com/jkxz6

If you want this app to be running all the time, you'll want a windows
service. If it's just something you want to run when someone logs in, a
windows app would be a bit easier to deal with.
 
Back
Top