run Chkdsk at system start-up through Batch File

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.
 
P

Pegasus \(MVP\)

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.
 

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

Top