How to schedule a CHKDSK on every boot

How to schedule a CHKDSK on every boot

Create a file, C:\Y.TXT that contains: Y Create a file C:\CHKBOOT.BAT that contains:

chkdsk C: /F <c:\y.txt or chkdsk C: /F /R <c:\y.txt exit

If you have a D drive, just add another line, etc..

If you always logon to the server, just put C:\CHKBOOT.BAT in your StartUp group or download AUTOEXNT. This service will execute a batch file during system boot.

You can do this with one file as follows:

echo y | chkdsk Drive: /f

exit

Leave a Reply

Your email address will not be published. Required fields are marked *

six + three =

This site uses Akismet to reduce spam. Learn how your comment data is processed.