chkdsk question (in a script?)

  • Thread starter \(ProteanThread\)
  • Start date
P

\(ProteanThread\)

is it possible to run "chkdsk C: /f" in a script without being forced to
manually press "Y" to run chkdsk at next startup? (an autorun type thingy)
 
S

Steve N.

(ProteanThread) said:
is it possible to run "chkdsk C: /f" in a script without being forced to
manually press "Y" to run chkdsk at next startup? (an autorun type thingy)

There are programs that can pass a keystroke through a script, batch or
cmd process but it wouldn't work anyway, you'd still have to restart in
order for chkdsk /f to run on the system drive.

Steve
 
P

\(ProteanThread\)

Steve N. said:
There are programs that can pass a keystroke through a script, batch or
cmd process but it wouldn't work anyway, you'd still have to restart in
order for chkdsk /f to run on the system drive.


That's what I want, create a shortcut to a script that passes "Y" to "chkdsk
c: /f" automatically
 
S

Shenan Stanley

(ProteanThread) said:
is it possible to run "chkdsk C: /f" in a script without being forced
to manually press "Y" to run chkdsk at next startup? (an autorun type
thingy)

Command line you are looking for:

echo y|chkdsk /f
 
T

Torgeir Bakken \(MVP\)

(ProteanThread) said:
is it possible to run "chkdsk C: /f" in a script without being
forced to manually press "Y" to run chkdsk at next startup?
Hi

Try this:

echo Y|chkdsk.exe c: /f
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top