This command line tool to remove matching files and folders from disk. It is written in using C#/VS.NET 2010.
You require .NET Framework in order to run this tool. You can download it from here.
- Clean up files and folders matching regular expression pattern
- Works with single file as well as files in a folder
- Runs on Windows 95/98/ME/NT4/2k/2k3/2k8/XP/Vista/7
How to use
- Run the ChoFileFolderCleanupConsoleTool.exe file in command line with the following command line parameters
/P Turn on preview mode.
/I Include subdirectry.
/R Remove directory if empty.
/MD Match folder names.
/DMF Don’t Match file names.
/F File name matching regular expression.
<default> Semicolon(;) seperated Files or Folders path.
ChoFileFolderCleanupConsoleTool.exe /I "C:\SampleFileOrFolder1,C:\SampleFileOrFolder2" ChoFileFolderCleanupConsoleTool.exe /I /MD "C:\SampleFileOrFolder1,C:\SampleFileOrFolder2" ChoFileFolderCleanupConsoleTool.exe /DMF /I /P "C:\SampleFileOrFolder1,C:\SampleFileOrFolder2"
Please visit Regular Expression Cheat Sheet for help in creating regular expression