"Christos Kritikos" <(E-Mail Removed)> wrote in
news:0c1001c484b7$74056a10$(E-Mail Removed):
>
> Hi,
>
> I am trying to run HD checks on a Win2K Server computer.
> The manual approach that I follow is to
> a. run "chkdsk [drive] /f /r"
> b. answer "No" to the question if I want to dismount the
> volume (if the question pops up)
> c. answer "Yes" to the question if I want to run disk-
> check at the next startup
> d. reboot the computer
>
> My problem is that I would like to periodically run
> chkdsk automatically (ie once a week at 3:00am). Is there
> a way I can do this and/or to automate the above process?
>
> thanks
> christos
>
The command to initiate the check follows:
echo y|chkdsk c:/f
echo y|chkdsk d:/f
Then you need to have an installed "shutdown" command. I don't recall if
2000 has one (you may need to get it from Microsoft.com) but I use
Psshutdown.exe (free,
http://www.sysinternals.com/ntw2k/fr...shutdown.shtml). Issue a
command like the following:
c:\[path to system32 folder]\psshutdown.exe -r
Save all the text command to a text file named checkdisk.bat and then use
the add scheduled task wizard in scheduled tasks to set a date and time to
run.