run Chkdsk at system start-up through Batch File

  • Thread starter Thread starter John Abraham
  • Start date Start date
J

John Abraham

Hello Global Friends,
My System WinXP Pro Sp2 has got four drives. How to schedule Chkdsk to run
at system startup through a batch file, without a key pressing?

1)"ChkNtfs /C" command runs Chkdsk at start-up if ONLY if the drive is
dirty.

2)"Fsutil Dirty Set" command and followed by "Chkntfs /C" schedules a Chkdsk
at startup but runs without /f only.(Only first three passes)

3)"Chkdsk /F /V /R /X" prompts "lock the computer or not Y/N?", OR "Schedule
at next start Y/N?" etc. Sometimes both prompts appears or sometimes either
one. So could not place in the batch file.

Your kindest most honest response will be appreciated.
 
John Abraham said:
Hello Global Friends,
My System WinXP Pro Sp2 has got four drives. How to schedule Chkdsk to run
at system startup through a batch file, without a key pressing?

1)"ChkNtfs /C" command runs Chkdsk at start-up if ONLY if the drive is
dirty.

2)"Fsutil Dirty Set" command and followed by "Chkntfs /C" schedules a Chkdsk
at startup but runs without /f only.(Only first three passes)

3)"Chkdsk /F /V /R /X" prompts "lock the computer or not Y/N?", OR "Schedule
at next start Y/N?" etc. Sometimes both prompts appears or sometimes either
one. So could not place in the batch file.

Your kindest most honest response will be appreciated.

"Your most honest response will be appreciated". OK, I'll try
not to lie on this occasion . . . Use the Task Scheduler to run
the following batch file at startup time:

@echo off
echo Y|chkdsk /F

This will force chkds to run at boot time, with no further
prompts.
 
Back
Top