1.

Solve : Scandisk Disk Defrag automated bat file?

Answer»

Hi all! I need a little advice on automating DISK Defragmenter and Scandisk. I am running Win XP Pro 5.1.2600.

So far:
Quote

@echo off
defrag c: -a -V >analyzeoutpudefrag.txt
defrag c: -f -v >finishoutputdefrag.txt
echo y|chkdsk c: /f /v /r >outputscandisk.txt
shutdown /r /f /t 5

The part I can't FIGURE out is Scandisk outputting to a .txt file the results of the Chkdsk after the restart. Is there a way? Or a vbscript option? For now, I plan on using Scheduled Tasks to run the .bat file.Quote from: olskoobatr on September 05, 2007, 06:19:18 PM
Hi all! I need a little advice on automating Disk Defragmenter and Scandisk.
...
The part I can't figure out is Scandisk outputting to a .txt file the results of the Chkdsk after the restart. Is there a way? Or a vbscript option? For now, I plan on using Scheduled Tasks to run the .bat file.

Just CURIOUS, - is it even necessary to use a batch file at all?

Add ScanDisk as a Scheduled Task. Same for Defrag.

Also, can't Scandisk be configured to keep a log file? On my older system, it can. If so, that might solve that part.



Discussion

No Comment Found