JSI Tip 0058 - How to schedule a CHKDSK on every boot.

Jerold Schulman

January 28, 1997

1 Min Read
ITPro Today logo in a gray background | ITPro Today


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

chkdsk C: /F 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: (Provided by Keith Gorham)

echo y | chkdsk Drive: /f
exit


Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like