Chkdsk /r /f from batch file

Table of Contents

I was looking for a way to get a client to run a chkdsk /r/f with our pressing y. (throught our MSP tool Naverisk) I found this trick

echo y|chkdsk c: /f /r /x

Though tit was quite clever.

 

Source http://forums.techguy.org/3049075-post3.html