Discussion Locked

batch file for CHKDSK on a NT 4.0 server

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
Does any one have a batch file or script all ready written and willing to share, for Win NT 4.0, that will allow me to run a chkdsk from task scheduler or the batch file and log the results if any errors were found or not. I know that the schedulerhas a view log under the Advanced menu that just gives the event code. I would like to hear any ideas or experience?s with this type of thing. I am new to batch files. Thank you

1 reply

by acattr

create a batch file calle it chkdisk.bat

put this in batch file
>>>>>>>>>>>>>>>>>>>
@echo off
chkdsk /f > c:\chkdisklog.txt
>>>>>>>>>>>>>>>>>>>

You don't have to use the /f option if you don't want to fix errors. What it will do is run chkdsk and append the onscreen data to a text file called chkdisklog.txt

This discussion is closed to new replies.