Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

.bat file to help automate running CHKDSK....

Status
Not open for further replies.

Aett

MIS
Jan 30, 2006
15
US
So far we have this very simple .bat file containing:

c:
chkdsk /f

shutdown -r


What we are needing is a automatic YES switch or such so that when the CHKDSK prompt pops up the user does not have to hit Y or yes, it just happens automatically.

Thanks.
 
my patner found the solution on MS website:

c:
@echo off
echo y|chkdsk c: /f
shutdown -r
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top