Progress bar and chkdsk

  • Thread starter Thread starter Prostetnic
  • Start date Start date
P

Prostetnic

Hi I have an application that runs chkdsk before starting to make sure
the drive has no problems. It works fine and I get the result code from
chkdsk and decide whether or not to continue from that. However chkdsk
starts in an ugly dos box. I have seen applications where this is not
the case.
+
How can I start chkdsk hidden and just have a progress bar report each
phase of checking and an accurate depiction of how much longer it
needs?
 
Hi I have an application that runs chkdsk before starting to make sure
the drive has no problems. It works fine and I get the result code from
chkdsk and decide whether or not to continue from that. However chkdsk
starts in an ugly dos box. I have seen applications where this is not
the case.
+
How can I start chkdsk hidden and just have a progress bar report each
phase of checking and an accurate depiction of how much longer it
needs?

You can try setting the ProcessStartInfo like this:

ProcessStartInfo startInfo = new ProcessStartInfo("chkdsk");
startInfo.WindowStyle = ProcessWindowStyle.Hidden;


Good luck with your project,

Otis Mukinfus
http://www.arltex.com
http://www.tomchilders.com
 
In addition to what Otis mentioned, you could redirect the standard output
(another Process class feature) and output this into your own "GUI".
Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top