-
sorry , not quite VB!
when my VB app computer riuns un-attended. If it reboots after power outage, etc
ScanDisk runs as per normal windows startup after abnormal closed-down.
If scandisk finds any file errors, I need it to automatically delete them and continue bootup.
How can I do this? (command line options on scandisk maybe?)
VB6, SP4
-
In dos, type: scandisk /?
It'll tell you what to do.
-
OK what next?
Thanks, /? tells me i need ?autofix /nosummary /nosave
options on ScanDisk command line.
BUT.. I want these options to apply ONLY when scandisk is run automatically after reboot-after-bad-close-down.
If a user does a 'manual' scandisk these options must not apply.
How can I apply these options on on the reboot case?
(I can modify the scandisk.ini file, but this will apply to scandisk runs)
-
Scandisk x: (substitute the drive letter for x)
Specify the drive you want to check.
/a Check all your local hard disks.
/n Start and quit ScanDisk automatically.
/p Prevent ScanDisk from correcting any errors it finds.
Try:
-
Yes, ok but how do I tell windows to run these options ONLY on bad-shutdown-REBOOT ?