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

Author Topic: Bat file for chkdsk for other logical drives !!!  (Read 5534 times)

0 Members and 1 Guest are viewing this topic.

Floppyman

    Topic Starter


    Rookie

    Thanked: 2
    • Experience: Beginner
    • OS: Windows 7
    Bat file for chkdsk for other logical drives !!!
    « on: November 06, 2011, 05:43:47 AM »
    Hello folks i want to make a batch file that would Check the Disk of my other partition irrespective if they are scheduled for the chkdsk and that provide a report.log of the event of the chkdsk.

    At the moment i am using this commands :

    " echo y> confirm.txt
      chkdsk /r <confirm.txt
      shutdown -r|      " 


    This is something which i straight away took from a website,and kept for a schedule check, which it does after a reboot. I have no problem with that.
     But i want the to look at the report.log, can anyone make it for me.   

    Any suggestion is greatly appreciated.

    Raven19528



      Hopeful
    • Thanked: 30
      • Computer: Specs
      • Experience: Experienced
      • OS: Windows 7
      Re: Bat file for chkdsk for other logical drives !!!
      « Reply #1 on: November 06, 2011, 05:54:53 PM »
      Without testing, why wouldn't this work?
      Code: [Select]
      chkdsk /r /y>report.log
      shutdown /r
      "All things that are
      Are with more spirit chased than enjoy'd" -Shakespeare

      Floppyman

        Topic Starter


        Rookie

        Thanked: 2
        • Experience: Beginner
        • OS: Windows 7
        Re: Bat file for chkdsk for other logical drives !!!
        « Reply #2 on: November 07, 2011, 12:57:02 AM »
        Without testing, why wouldn't this work?
        Code: [Select]
        chkdsk /r /y>report.log
        shutdown /r

        Almost promising but it didn't work my friend, it didn't even start the chkdsk process.

        Raven19528



          Hopeful
        • Thanked: 30
          • Computer: Specs
          • Experience: Experienced
          • OS: Windows 7
          Re: Bat file for chkdsk for other logical drives !!!
          « Reply #3 on: November 07, 2011, 09:27:55 AM »
          Okay, try this one then:

          Code: [Select]
          echo y>confirm.txt
          (
          chkdsk /r <confirm.txt
          ) > output.txt
          shutdown /r
          "All things that are
          Are with more spirit chased than enjoy'd" -Shakespeare

          Floppyman

            Topic Starter


            Rookie

            Thanked: 2
            • Experience: Beginner
            • OS: Windows 7
            Re: Bat file for chkdsk for other logical drives !!!
            « Reply #4 on: November 08, 2011, 03:22:36 AM »
            Okay, try this one then:

            Code: [Select]
            echo y>confirm.txt
            (
            chkdsk /r <confirm.txt
            ) > output.txt
            shutdown /r

            Sorry mate that didn't work too, it restarted after 30 sec, but didn't do the chkdsk, too bad. It created log file called confirm.txt and output.txt.
            :(

            Raven19528



              Hopeful
            • Thanked: 30
              • Computer: Specs
              • Experience: Experienced
              • OS: Windows 7
              Re: Bat file for chkdsk for other logical drives !!!
              « Reply #5 on: November 08, 2011, 11:47:21 AM »
              What does you're original code show you when the chkdsk starts running?

              I'll need to do a little tinkering to see what's going on with everything, but that information will help.
              "All things that are
              Are with more spirit chased than enjoy'd" -Shakespeare

              Floppyman

                Topic Starter


                Rookie

                Thanked: 2
                • Experience: Beginner
                • OS: Windows 7
                Re: Bat file for chkdsk for other logical drives !!!
                « Reply #6 on: November 09, 2011, 05:24:18 AM »
                What does you're original code show you when the chkdsk starts running?

                I'll need to do a little tinkering to see what's going on with everything, but that information will help.

                Code: [Select]
                echo y> confirm.txt
                  chkdsk /r <confirm.txt
                  shutdown -r|     

                This is the code , it actually starts the countdown to 30 sec, and then reboots and does the chkdsk, but it doesn't produce an output report or log, that is what i want.

                Sidewinder



                  Guru

                  Thanked: 139
                • Experience: Familiar
                • OS: Windows 10
                Re: Bat file for chkdsk for other logical drives !!!
                « Reply #7 on: November 09, 2011, 07:02:47 AM »
                By running CHKDSK at boot, all the Windows services are not available.

                Go to Control Panel and double click Administrative Tools
                Double click Event Viewer
                Double click Application log

                Look down the Source column and double click the first Winlogon entry you find. The CHKDSK log should be there.

                 8)



                The true sign of intelligence is not knowledge but imagination.

                -- Albert Einstein

                Floppyman

                  Topic Starter


                  Rookie

                  Thanked: 2
                  • Experience: Beginner
                  • OS: Windows 7
                  Re: Bat file for chkdsk for other logical drives !!!
                  « Reply #8 on: November 15, 2011, 07:07:51 AM »
                  By running CHKDSK at boot, all the Windows services are not available.

                  Go to Control Panel and double click Administrative Tools
                  Double click Event Viewer
                  Double click Application log

                  Look down the Source column and double click the first Winlogon entry you find. The CHKDSK log should be there.

                   8)

                  Nope that too doesn't work , as you mentioned the i.e.,
                  Code: [Select]
                  Go to Control Panel and double click Administrative Tools
                  Double click Event Viewer
                  Double click Application log

                  Sidewinder



                    Guru

                    Thanked: 139
                  • Experience: Familiar
                  • OS: Windows 10
                  Re: Bat file for chkdsk for other logical drives !!!
                  « Reply #9 on: November 15, 2011, 10:01:51 AM »
                  You may have omitted a step:

                  Quote
                  Look down the Source column and double click the first Winlogon entry you find. The CHKDSK log should be there.

                  If not, what didn't work? Did you not find admin tools in the control panel? Did you not find the event viewer? Did you not find the Application log?

                  The procedure is best followed immediately after CHKDSK is run during the boot process. Otherwise you may have to look deeper into the log for a Winlogon entry.

                   8)
                  The true sign of intelligence is not knowledge but imagination.

                  -- Albert Einstein