General discussion
-
Topic
-
Automating Chkdsk
LockedI want my workstations to check for and repir errors on their local c: drive during the evening.
There is a TechRepublic download for automating chkdsk and defrag. I downloaded this, but there is a bug in it. The code contains the line
echo Y chkdsk /f /r
Of course the result of this command is that “Y chkdsk /f /r” is echoed to the screen. This is not the desired result. What we want to do is tell chkdsk to run in fix mode upon the next reboot. There does not seem to be any way of telling chkdsk to do this without manually having to press the Y key. How is one supposed to schedule a disk check that will fix errors that it finds? Surely there must be a way!
Thank you in advance for your advice.