If you have a *.zip file with the *.fb2 file in it - this script can extract this *.fb2 file to the specified directory.
Very convenient for downloaded books, if you build your collection by author name.
Script checks the *.fb2 file, get the author first and last name and creates the directory with the authos's name. Then it extracts the *.fb2 file to this directory.
If the author's name is the same as the specified directory name, script extracts the *.fb2 file in this directory.
Extracted *.fb2 file renames according to the template: Series name + number in the series + book name.
powershell -NoProfile -ExecutionPolicy Bypass -File "fb2_extract.ps1" -zipPath "_FULL_PATH_TO_ZIP_FILE_" -workDir "_PATH_TO_THE_DIRECTORY"
calling the *.cmd file:
fb2_extract.cmd "_FULL_PATH_TO_ZIP_FILE_" "_PATH_TO_THE_DIRECTORY"
*.cmd content:
powershell -NoProfile -ExecutionPolicy Bypass -File "fb2_extract.ps1" -zipPath %1 -workDir %2
Command: %COMMANDER_PATH%\Plugins\fb2_extract\fb2_extract.cmd
Parameters: "%V" "%T"
Start Path: %COMMANDER_PATH%\Plugins\fb2_extract\
Icon file: %COMMANDER_PATH%\Plugins\fb2_extract\fb2_extract.ico