Site hosted by Angelfire.com: Build your free website today!

Find Empty Files Anywere on Your Hard Disk

Software that creates tempory files on your hard disk has an unfortunate
tendency to remove all the information from but not remove the files
themselves. This leaves a trail of zero-length files across your hard disk, each
taking up a cluster of storage space and making a mess of your directories. If
you have noticed this phenomenon, track down these lines with DOS 5.0's DIR and
FIND functions in this short batch file. Enter lines in a text editor and save
them as am ASCII file in your batch file directory under the name FINDZERO.BAT.
@ECHO OFF
CD \
DIR /S|FIND "0" >EMPTY.DAT
TYPE EMPTY.DAT
DEL EMPTY.DAT


This file list every file on your hard disk and feeds it to FIND, which looks for zeros
with spaces before and after; these cheifly in listings of zero-bytes file sizes
and empty directories. All files meeting FIND'S criterea are then redirected to a file, which DOS displays and then deletes. This shows you a list of all of your hard disk's empty files that you can delete.


written by M.J.JONHSON


GO BACK TO DEBUG HOME PAGE

GO BACK TO HOME PAGE