Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tracking the progress of WMI Defrag Class

I am looking at something like this: http://www.codeproject.com/Messages/2901324/Re-the-result-of-DefragAnalysis-method-in-csharp.aspx

Which is perfect for my needs. I ran it as a thread and everything is working good. The Only thing i wanted was being able to track the progress.

For example: 50% Analyzed or something like that.

Any Ideas ?

like image 383
e e Avatar asked Nov 24 '25 01:11

e e


1 Answers

The WMI doesn't provide any mechanism to monitor the progress of the defrag method, as workaround you can implement your own defrag method using the WinAPi functions related to this task.

like image 189
RRUZ Avatar answered Nov 25 '25 16:11

RRUZ