Back to Home

File Grinder: Batch Rename Files (FB2, MP3 etc.)

.net · fictionbook2 · mp3 · jpeg · batch · rename

File Grinder: Batch Rename Files (FB2, MP3 etc.)

    I want to submit to your court a program for batch renaming files written over several free evenings. I hope for constructive criticism and suggestions, well, I also want to have a PR, how can I do without it? ;)

    image

    You can download the program here .



    So what exactly is File Grinder?

    In short, this is a batch renaming of files based on templates, with support for meta tags in some formats.

    The idea of ​​the program arose as a result of an indefatigable passion for reading books. I have not been holding paper books (excluding some from the category of desktop ones) for about eight years, since a friend gave me my first handheld - Palm Vx. In those ancient times, I read books exclusively in the PalmBook format, but one fine day I discovered FictionBook, and, accordingly, the PalmFiction reader, it started.

    For several years, a good library was built in FB2, of course the books were downloaded anywhere, the situation was aggravated by the downloaded Traum library. Busting natural laziness, it was decided to sort all this indecency. The search for a convenient tool for renaming all this stuff led to only a few librarian programs and the notorious rename program booki.

    Librarian programs immediately disappeared, firstly, putting the whole motley collection of books into them is not a trivial task in itself, and secondly, for the banal renaming of files, this is from the opera of a microscope and a nail. Booki, however, fell away due to a very unfriendly interface, not free and lack of source codes.

    After all the above throwings, it was decided to write this program. Having implemented the basic functionality, I realized that I had a “sorting disease” - it was decided to sort several dozen gigabytes of photos and music, therefore, support for mp3 and jpeg was added to the program.

    Currently, in addition to tags applied to all types of files (such as “original file name”, “substring”, case change in file name, etc.), the following file formats are supported:

    1. FB2 (meta-data about the book)
    2. MP3 (Id3 tags) using the Taglib-Sharp library
    3. JPEG (Exif 2.2 tags are supported)

    The program, in addition to renaming, can also move and copy files, and also supports search-replace by file name (including regular expressions), counters in the file name, replacing forbidden characters in the file name, creating sub-folders according to the pattern, etc.

    Download the program here .

    Sources will be laid out under the GPL in the near future, after a little formatting-cosmetics.

    The program is written in C #, therefore .Net Framework 3.5 is required.

    I would be very grateful for constructive criticism, suggestions and bug reports.

    In the nearest TODO sheet:

    1. Support for the command line (almost ready)
    2. Pre- and post-processing of files (change of encoding, change of file format, archiving, etc.)
    3. Support for new file formats
    4. Localization

    Here are a few screenshots of the program:

    1. Basic window (renaming FB2)

    image

    2. Main window (renaming MP3)

    image

    3. Template editor

    image

    4. Search-replace window

    image

    You can download the program here .

    Read Next