running scandisk and defrag from a batch?
Results 1 to 7 of 7

Thread: running scandisk and defrag from a batch?

  1. #1
    Join Date
    Nov 2000
    Location
    buenos aires
    Posts
    335

    running scandisk and defrag from a batch?

    does anyone know how to make a batch file that will execute scandisk and defrag without been stopped by error mesages like `scandisk has started already 10 times...`?
    also, i have my hard drive partitioned into 4 smaller drives.
    thank you very much.

  2. #2
    Join Date
    Jun 2001
    Posts
    1,454
    You could create a batch file to automate the start up of the programs. However once they are running, the program itself takes over until it comes to it's timely end, at which time the batch file will take over again. You could create a batch file to run both programs. However it would be contingent on no hang ups on either one.

    What you are suggesting, would require a program which will support conditional arguements, such as if,then,else, etc. You can do that with a spreadsheet, but not with scandisk or defrag.

    The most common way to automate this task would be to use task manager, and just make sure nothing is running which would infterfere with the programs. Windows 98 has a way to do this automatically, if you ever decide to upgrade, then you will find they have a Wizard which will help you automate most maintenance tasks.

    ]"


    ]"



    ------------------
    See Other Side!
    This is the Other Side

  3. #3
    Join Date
    Nov 2000
    Location
    buenos aires
    Posts
    335
    thank you very much snarkie, i guess i`ll try with task manager, i don`t see a windows 98 upgrade in the near future.

  4. #4
    Join Date
    Sep 1999
    Location
    Clearwater, Fl.
    Posts
    22,608
    Taskmanager isn't going to help the "scandisk has started already 10 times" message. You need to close out ALL background apps.
    If you're happy and you know it......it's your meds.

  5. #5
    Join Date
    Jun 2000
    Location
    Oz
    Posts
    3,441
    The problem you are encountering with scandisk is caused by something running in the background.
    Do a ctrl-alt-del & end task on everything but explorer & systray. It should work then.
    Trial & error will determine what background app is causing the problem
    See ScanDisk Has Restarted 10 Times Because Windows...

    [This message has been edited by PCSolutions (edited 12-07-2000).]
    In the beginning there was the command line

  6. #6
    Join Date
    Nov 2000
    Location
    buenos aires
    Posts
    335
    i don`t know how to say it, but many many thanks to all the people that has posted a reply for my stupid question.
    i wanted to be able to execute those 2 prgrams and then either turn off the computer or leaving it running. i`m not totally worried about leaving the computer on all night, the problem is that i`m really worried about leaving a computer `hanged` in the middle of a process due to some stupid error message.
    if a batch file is too complex or it won´t work, should use one of those `shutdown` agents/programs that are around?
    won´t this other program add another problem to the `scandisk has started already 10 times...` syndrome.
    thanks in advance

  7. #7
    Join Date
    Jun 2000
    Location
    Oz
    Posts
    3,441
    Your best bet is to determine which background app is causing the problem with a little trial & error. Then you can use task scheduler to set it to scandisk & defrag in the middle of the night or whenever
    How many icons are running in the system tray down by the clock?
    When you do ctrl-alt-del what programs are listed? One of them is casing this. This is a known issue & happens all the time
    Using a batch file would most likely work but in so doing you are basically curcumventing the problem instead of solving it
    In the beginning there was the command line

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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