FB2 Extract

A PowerShell script (Windows) for quickly extracting a *.fb2 file from a *.zip archive.

The script receives the path to the *.zip file containing the *.fb2 file as its first parameter. The second parameter specifies the path to the directory where the *.fb2 file should be extracted.

This script is especially useful for unpacking books if you’re creating a library by author name.

The script searches for the author’s first and last names in the *.fb2 file. If they match the directory name passed in the second parameter, the script extracts the *.fb2 file to that directory.

If not, the script creates a subdirectory with the author’s first and last names and extracts the *.fb2 file containing the book into it.

The file containing the extracted book is renamed using the following template: Series name + series number + book title.

from Tg

0 0 votes
Article Rating
Subscribe
Notify of
0 Комментарий
Newest
Oldest Most Voted
Inline Feedbacks
View all comments