TWmiDiskKeeper is a part of
WmiSet Component Collection for Delphi, C++Builder.
It helps maintaining disk volumes on a local or remote computer.
The component requires Windows Server 2003, Windows Vista, or newer operating system.
The component has the following capabilities:
List disk volumes on the destination computer.
Analyzes the state of the disk volume and produces detailed statistics.
Defragments the volumes
Checks volumes for errors, or schedules the check for the next reboot
Adds and deletes the mount points. This allows to mount new volumes into the directories of the existing volumes, similar to how Unix operates
Code Example: Defragmenting the volume
This is a Delphi console application that shows the example how to
use TWmiDiskKeeper to defragment the volume.
WmiSet component collection comes with a demo project
that shows how to use TWmiDiskKeeper component in a GUI application. Look in the
examples\DiskKeeper directory. Click on the image do download
the demo application that can analyze and defragment volumes.