473,385 Members | 1,292 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Progress bar and chkdsk

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?
Dec 25 '06 #1
2 3544
On mon, 25 dec 2006 11:23:38 +0100, "Prostetnic" <nospam@invalidwrote:
>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
Dec 25 '06 #2
In addition to what Otis mentioned, you could redirect the standard output
(another Process class feature) and output this into your own "GUI".
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"Prostetnic" wrote:
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?
Dec 25 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: SpamProof | last post by:
I got an animated gif that is a barber pole spinning that I want to use as a progress bar. The problem is that is stops spinning (shows 1 frame) when my browser is processing a submited request...
7
by: Pepi Tonas | last post by:
I have a form that takes some time to load because it has to populate some Data. I was trying to display a form on top of it with an activity bar so that user can see that something's going on. ...
2
by: _DD | last post by:
File system question. Even expert config-techies don't seem to know this, but one of the local OS experts will: Chkdsk, on a newly formatted partition, often says "140000KB in use by the...
1
by: daniel_xi | last post by:
Hi all, I am running a VS 2003 .NET project on my client machine (Win 2000 SP4, ..NET framework 1.1), running an ASP.NET application on a remote web server (Win 2000 Server, IIS 6.0, .NET...
15
by: eladla | last post by:
Hi! I am creating a composite control the does some of it`s own data access. I want to display a progress bar between the time the page is loaded and the control place holder is displayed and...
10
by: =?Utf-8?B?VGltIEh1bnRlcg==?= | last post by:
I am trying to run check disk on the c: (ntfs) on my computer via some code. I can launch the shell and give it the command to do the disk checking but it requires that I enter a "y" after some...
4
by: Jassim Rahma | last post by:
how can i make my own chkdsk without using the dos commands?
0
by: jags_32 | last post by:
Hello We use MFG-PRO as our ERP system which in turn uses Progress databases. In the old version of SQL 2000, using DTS packages, we used to set the code page via command prompts and execute DTS...
1
by: =?Utf-8?B?Y2E=?= | last post by:
I bought a brand new Toshiba Satellite L305-S5884 and I decided to do a CHKDSK and it froze at 55% of stage 5. I figured oh well. I took the battery out, restarted and it started the CHKDSK and...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.