Schedule Chkdsk to run at System Startup without any key pressing

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
 
E

egreen

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
 
P

Pegasus \(MVP\)

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
 

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