Does anyone know how to write VB.NET code to:
1. Retrieve current system diagnostics for memory
2. as well as hard drive fragmentation
Is it part of the Garbage Collector class or the System.Diagnostics namespace?
Thanks!
Bob
Printable View
Does anyone know how to write VB.NET code to:
1. Retrieve current system diagnostics for memory
2. as well as hard drive fragmentation
Is it part of the Garbage Collector class or the System.Diagnostics namespace?
Thanks!
Bob
In W2K and newer, you want to use the WMI.
http://www.freevbcode.com/ShowCode.Asp?ID=4571
This is a great example, thank you!
One last question... I have been exploring the "Win32_DefragAnalysis" WMI object, but it appears only functional for win 2003. Does anyone know of anything comparable to this class for Win 2k or Win XP?
Thanks again!
Bob