CopyRegexTable of ContentsFileSplit
DeleteRegex

Delete Files Using Regular Expressions

This program deletes files whose path name matches a regular expression.

Command line parameters are:

-dir       <adirectory>  Directory of the files to delete. By default, this is the current directory.

-filepath <apattern> The file name pattern to find to delete. For example: .*/dir/(report)_[0-9]*.txt

-casesens     This flag indicates search is case sensitive.

-delemptydirs This flag indicates empty folders that are being processed should be deleted as well.

-r         Recursively process sub directories.

-verbose   Print detailed progress messages.

DeleteRegex.exe is part of Bestcode File Utilities tool set.

DeleteRegex file delete utility scans (recursively if -r) a folder (-dir) for files whose file path (path and file name) matches a regular expression given by -filepath parameter. The matching files are deleted.

 

webmaster@gobestcode.com