Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: how to automate chkdsk.exe  (Read 3741 times)

0 Members and 1 Guest are viewing this topic.

timrob

    Topic Starter


    Intermediate
    how to automate chkdsk.exe
    « on: December 14, 2005, 07:28:37 PM »
    How can I automate checking of my c:?  C: contains my op sys, Win XP Pro.  The following batch file works, somewhat, but I still have to reboot the computer myself.  I then run the batch file from a Windows Scheduled Task.  d:, e:, f:, g:, and h: are all data drives.

    echo y|chkdsk c:/r
    chkdsk d:/r
    chkdsk e: /r
    chkdsk f: /r
    chkdsk g: /r
    chkdsk h: /r

    Is there anyway to automate the reboot?  Will the other programs that are running shutdown nicely?

    If not, I could add a pause for a last line to leave the window open and remind me to manually reboot the computer.


    Mac

    • Guest
    How to automate chkdsk.exe
    « Reply #1 on: December 15, 2005, 01:40:22 AM »
    Use Diskeeper 10 Professional and schedule a boot-time defrag with chkdsk and defrag the paging file and MFTs at the same time.

    This is a better way to do the maintenance in my view.

    Diskeeper has a 30-day evaluation period and I think that the program is worth buying for the Frag-Shield feature alone.

    You could set the scheduled task to run your batch file at Start-Up.
    « Last Edit: December 15, 2005, 01:40:42 AM by Mac »

    patio

    • Moderator


    • Genius
    • Maud' Dib
    • Thanked: 1769
      • Yes
    • Experience: Beginner
    • OS: Windows 7
    Re: how to automate chkdsk.exe
    « Reply #2 on: December 15, 2005, 08:47:54 AM »
    Diskeeper Lite has everything except scheduling, but i agree with Mac...it is worth owning.
    " Anyone who goes to a psychiatrist should have his head examined. "

    Mac

    • Guest
    How to automate chkdsk.exe
    « Reply #3 on: December 16, 2005, 02:19:01 AM »
    XP Defrag - IS - Diskeeper Lite.  ;)