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.
Printable View
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.
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.
https://discussions.virtualdr.com/]"
https://discussions.virtualdr.com/]"
------------------
See Other Side!
This is the Other Side
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.
Taskmanager isn't going to help the "scandisk has started already 10 times" message. You need to close out ALL background apps.
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).]
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
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