I'am working on a program which should shutdown/hibernate/suspend a PC. The machine is sometimes heavy loaded, so it would be nice to wait until the work is done. This ca be CPU load or disk activity.
For the first part i have some useful sources already, but the part with the disk activity seems to be a little more difficult. I cannot say what disk is used and it's not always the same. Just need a % value of disk activity over all disks, so i could set a minimum limit and the execute shutdown/etc...
Looked up at MSDN: Performance Data Helper could be useful, but never worked with it yet.
Any help/tips appreciated.
For the first part i have some useful sources already, but the part with the disk activity seems to be a little more difficult. I cannot say what disk is used and it's not always the same. Just need a % value of disk activity over all disks, so i could set a minimum limit and the execute shutdown/etc...
Looked up at MSDN: Performance Data Helper could be useful, but never worked with it yet.
Any help/tips appreciated.
Comment