free log
CRM

Bozteck VNCScan Community

Community makes things happen
Welcome to Bozteck VNCScan Community Sign in | Join | Help
in
Home Forums

Script to run CHKDSK

Last post 07-26-2007, 6:31 AM by Sam Crane. 4 replies.
Sort Posts: Previous Next
  •  07-24-2007, 3:38 PM 2029

    Script to run CHKDSK

    i was trying to create a script to Run CHKDSK on a system and avoid all prompts

    Below is what I have sofar which doiesn't work. Also if  I could get it to work it would still require the  "Y" when the prompt comes up saying that it cannot chkdsk this drive because it is in use, do you want to run chkdsk during the next restart. Anyone have any ideas?

    c:

    cd \temp\vncscan

    CHKDSK C: /r > C:\CHKDSK.txt

  •  07-25-2007, 9:18 AM 2033 in reply to 2029

    Re: Script to run CHKDSK

    chkdsk requires exclusive access to the volume that is being checked, so no files can be opened on that volume.  Since your system drive always has files open as long as Windows is running, there is no way to check it without rebooting.


  •  07-25-2007, 5:46 PM 2036 in reply to 2033

    Re: Script to run CHKDSK

    That is correct.  If you take away the " > C:\CHKDSK.txt", you will be prompted to that effect. 

    Thank you,

    Steve Bostedor
  •  07-26-2007, 6:28 AM 2037 in reply to 2036

    Re: Script to run CHKDSK

    But is there a way to have it not prompt and either just reboot automatically or run the next time it boots?
  •  07-26-2007, 6:31 AM 2038 in reply to 2037

    Re: Script to run CHKDSK

    You could try an:

    echo y|chkdsk c: /r


    Best Regards,

    Samuel E. Crane
    Senior Support Specialist
    support@vncscan.com
View as RSS news feed in XML
Powered by Community Server, by Telligent Systems