@echo off :: CLEARFRE.BAT - writes spaces (sort of) to free disk space :: on current drive to allow disk image to be more compressable :: written by WTN 9/24/05 if .%1==.Sub goto %2 echo Clearing free space on current drive... :: create seed file... echo >-temp1 :: run overwriter in new shell... %comspec% /c%0 Sub Grow :: clean up and exit del -temp? cls goto End :: make temp files bigger and bigger... :Grow copy /b -temp1+-temp1 -temp2 >nul if not exist -temp2 goto end copy /b -temp2+-temp2 -temp1 >nul if not exist -temp1 goto end dir | find "bytes free" goto Grow :End