Schedule Chkdsk to run at System Startup without any key pressing

  • Thread starter Thread starter Brock
  • Start date Start date
B

Brock

Chkdsk /f /v /r /x prompts "lock the computer or not Y/N?", "Schedule at
next start Y/N?" etc. How to schedule a Chkdsk at System Startup, through a
batch file, without any key pressing? (for kids computer) (Four drives C: D:
E: F:)

My System 1Ghz,384mb ram, WinXP Pro Sp2, AntiVir, Kerio 4.2.1, Ad-aware,
Spybot.

Thanks in advance

John
 
create a text file with just the letter y in the file.
name it c:\y.txt

create a bat file that has the following

c:
cd..
cd..
chkdsk c: /r < c:\y.txt

If you want it to reboot also add the command

shutdown -f -r -t 60
 
create a text file with just the letter y in the file.
name it c:\y.txt

create a bat file that has the following

c:
cd..
cd..
chkdsk c: /r < c:\y.txt

.. . . or even simpler:

echo Y | chkdsk c: /r
 
Back
Top