The first class is the Startup class, which associates all the exceptions in the Application to a locally defined procedure. The pattern options are limited right now, but I am planning to include Regular Expressions based renaming options. The FileRen uses CoolFileSystem to collect files in an ArrayList and then renames the file(s) based on the pattern selected by the user to rename the file(s). Still, let us analyze the basic structure of some useful classes in FileRen. Using the codeĪs proper comments have been added to the code to make it easy to understand, I am not giving any description of the code here. It uses the CoolFileSystem implementation by Vahe Karamian which is code present on CodeProject only. The idea came to my mind when I studied the code of CoolFileSystem available here at coolfilesystemclass.asp which uses multi-threading to collect files in an ArrayList. It uses multi-threading, first to collect file(s) and then to rename them so that the whole process consumes less resources of the system. The file-renamer is yet another implementation of the batch file renaming utility. I would like to mention that this is just a beginning to the approach and would likely be containing bugs, but my commitment is sincere and I will try to remove all those bugs as and when they are identified. So, I come forward to present how it can be done with this code snippet. You can always find one freeware application on renaming file(s) in batch mode but the source code alongwith is less likely. One of the examples is Batch File Renaming utility.
I wonder why in this era of free open-source, there are still small utilities that are considered as proprietary software which otherwise should not be.