
xdel.exe

This program is an extended version of the built-in del command 
in Windows 2000/XP/2003. You can delete files based on how old 
they are.

USAGE

xdel [-listonly] [-dirsonly|-filesonly] [-recurse] [-dolog]
     [-ctime TIME|-mtime TIME] [-debug] dir[pattern]

EXAMPLES

xdel -ctime Now-3d "D:\Microsoft SQL Server\Backup\*"

	Deletes all files with a create time prior to Now() minus
	3 days. Looks in the folder being specified and the 
	search pattern being specified. (Does not delete
	directories)

xdel -mtime Now-5d -dirsonly "C:\ReplData\*"

	Deletes all directories in the specified path (and all files
	inside those directories) that have a modify time prior
	to Now() minus 5 days.

xdel -ctime Now-256d -listonly "D:\Documents and Settings\"

	Does not perform any deleting. Simply prints the list of
	the files that would be deleted if -listonly were not specified.

PARAMETERS

-listonly   Do not delete any directories or files. Just print out 
            the files or directories that would be deleted.

-dirsonly   Look only at directories and delete directory and all
            contents inside directory. This is powerful, so beware.
			
-filesonly  Default. Cannot be used when -dirsonly is specified.
            Will delete files only. Directories will not be examined.
			
-recurse    Will seek inside all directories under the [dir] being
            specified. Without recurse xdel will only search the
            current directory.
			
-dolog      Will append to a file called xdel.log.txt all the content
            this is sent to the Console. This allows a log to be kept
            if xdel is being run within the Scheduled Tasks system in
            Windows.
			
-ctime      Creation time of the file or directory.

-mtime      Last modification time of the file or directory.

TIME        This method only supports the "Now-%d" lexicon. The
            date/time to look at is based on Now (the current date
            and time when xdel is invoked) minus %d (the number of
            days to subtract from Now).
			
-debug      Print out debug information regarding what files and/or
            directories are being analyzed for their mtime or ctime
            values.
			
dir         The directory to start the search in.

pattern     The pattern to search for such as *, or bak*, or s*, etc.

-----------
Written by John Lauer. Bugs and comments to: jlauer@simplewire.com.
-----------
