When a chkdsk process gets scheduled to run at the next
reboot then you can see how it runs while it goes through the
boot process. You will find a record of its actions in the
Event Viewer under the Applications log.
When you wish to check your system drive (usually drive C
then you MUST reboot the machine for it to happen. When
you wish to check other drives then you may be able to close
the processes that lock the open files. I cannot tell you what
processes they are - it's your machine!
Thanks again, I will try this in C and post back tomorrow. At this point,
checking my D programs and data folder will be a real hassle as there are
so many W2K processes I would have to investigate to see if they can be
disabled, my own programs are easy.
In W98SE, killing everything but explorer and systray meant I never had a
problem running scandisk. But it takes an expert to figure out all those
W2K processes.
BTW, I found today a small app that seems to run checkdisk even with
running programs:
-----
CheckDisk
Version 1.03
Dirk Paehl Germany
http://www.paehl.de/english.php
CheckDisk is a powerful tool for searching and repairing disk errors. It
is quite similar to the ScanDisk tool or chkdsk.exe, supplied with the
Windows operating systems (Windows 2000 and higher. Possible with Vista
and admin right). You can select either standard or full tests. The full
test additionally performs a sector check. It is capable of finding bad
sectors on your disk and marking them as such. The program works both
with hard disks (including SCSI and RAID) and removable media. Work on CD
too.
(Can work in W2K, even with running processes)
Typical Report:
Volume label is D drive.
CHKDSK is verifying files (stage 1 of 3)...
File verification completed.
CHKDSK is verifying indexes (stage 2 of 3)...
Index verification completed.
CHKDSK is verifying security descriptors (stage 3 of 3)...
Cleaning up 53 unused index entries from index $SII of file 9.
Cleaning up 53 unused index entries from index $SDH of file 9.
Cleaning up 53 unused security descriptors.
Security descriptor verification completed.
15358108 KB total disk space.
8532888 KB in 69271 files.
25076 KB in 4510 indexes.
0 KB in bad sectors.
218452 KB in use by the system.
65536 KB occupied by the log file.
6581692 KB available on disk.
4096 bytes in each allocation unit.
3839527 total allocation units on disk.
1645423 allocation units available on disk.
Check Disk: Finished OK