@echo off REM ################################################################## REM # scan.bat # REM # Richard Kesselring # REM # this program will run disk cleanup, scan disk, and disk defrag # REM # 10-22-07 # REM ################################################################## echo this program will take about an hour to run, and then reboot the computer. pause C: REM ################################################################## REM # Disk Cleanup all disks # REM ################################################################## REM # Run Sage Set First********************************************* REM # cleanmgr /sageset:11******************************************* cleanmgr /sagerun:11 REM ################################################################## REM # CHKDSK # REM ################################################################## CHKDSK C: /x REM ################################################################## REM # Disk Defrag # REM ################################################################## defrag C: /f D: REM ################################################################## REM # CHKDSK # REM ################################################################## CHKDSK d: /x REM ################################################################## REM # Disk Defrag # REM ################################################################## defrag d: /f shutdown /r