How to chkdsk completely unattended

0

1

have a question about scheduling chkdsk: I'm running chkdsk on task scheduler in windows 7 for my main hardrive (where windows is installed) using the following command: echo y|chkdsk /f /r.

But I can't use the same command for my second hard drive, as chkdsk first asks me if I want to force dismount it, which I don't, so I can't echo y...

I need to answer n for the first question and y for the second.

Anyone know how I can formulate a command that answers n and y to chkdsk prompts?

Or...

Is there a way to schedule chkdsk without it asking you anything?

iz_been

Posted 2013-12-23T19:07:46.353

Reputation: 101

Not really what I was looking for, but adding "/x" to chkdsk cmd makes chkdsk only ask if I want to schedule the task, making echo y valid. – iz_been – 2013-12-23T19:21:14.203

Answers

0

In your script you could specify the drive parameter for each chkdsk

echo n|chkdsk /r C:
echo y|chkdsk /r D:

Antony

Posted 2013-12-23T19:07:46.353

Reputation: 1 125