chkdsk question (in a script?)

  • Thread starter Thread starter \(ProteanThread\)
  • Start date 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)
 
(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
 
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
 
(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
 
(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
 
Back
Top