Results 1 to 5 of 5

Thread: scandisk non-stop on errors

  1. #1
    Guest

    Talking

    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


  2. #2
    Guest
    In dos, type: scandisk /?

    It'll tell you what to do.

  3. #3
    Guest

    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)

  4. #4
    Guest
    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:

    Code:
    ScanDisk /n

  5. #5
    Guest
    Yes, ok but how do I tell windows to run these options ONLY on bad-shutdown-REBOOT ?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width