I got a method through which I can perform a checkdisk through Java. Since I am developing a PC optimizer, I need to show the user the indexes completed and the remaining ones.I can do it by running a checkdisk on command line using this:
Runtime.getRuntime().exec
But my concern is how will I get the indexes completed and indexes to be processed on my UI? I will be doing it in Swing.