![]() ![]() I prefer using delegates rather than creating lots of nested classes implementing IComparer. The sort functionality was implemented with examples of IComparer and delegates such as System.Comparison. The following is the screen shot of the program: Sort on (File Name, File Size, Modified Date, and Created Date).Omit Empty Directories - will exclude from the report any directory where there was not any single file that met criteria for reporting (really cleans up the output if using other filters).File Search Pattern - filters file result by whatever mask is specified.File Size > than (Bytes, KB, MB, GB) - filters file result where files greater than specified size are reported.Display Full Path - Writes the File Name which includes the full path rather than the file name only.Display File Info - Adds file size in KB, MB, and GB, also Create Date and Modified Date. ![]() Display Directory Info - Adds roll up information such as total size of all files in directory and then total for all sub directories.Display Drive Info - Adds details of the root drive such as total size, free space, and percent used.Recursive Listing - Adds all sub directories to the XML report.There are several options labeled "Report Options", "Filter Options", and "Sort Options" which make the output a little more usable. The program requires a "Source Directory" and "Destination File" to process a list of directories and files and to save the resulting XML file. ![]() I've used command line batch files which are simple, but I wanted something that can be displayed nicely in a browser or Notepad++ and collapse directories. I just wanted to list my movie files with their size to a text document of sorts so I can have a quick reference of what movies I have available while I travel. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |