Saturday, October 4, 2008

Running CheckDisk in bat file

For a long time, I's searching for a solution to run check-disk, using a bat file.
The real problem is that when i try to run the check-disk on C: drive, a yes/no question is always asked. I actually dont know know how to by-pass that in the bat file.
However, I got the solution, as well and as follows:

echo y chkdsk C: /f /r

No comments:

Best viewed in Internet Explorer 8.