Skip to content

Korchy/powershell_fb2_extract

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FB2 Extract

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.

Example for calling directly from CLI with named parameters:

powershell -NoProfile -ExecutionPolicy Bypass -File "fb2_extract.ps1" -zipPath "_FULL_PATH_TO_ZIP_FILE_" -workDir "_PATH_TO_THE_DIRECTORY"

Example for calling using *.cmd with ranged parameters:

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

Example for calling from the button of Total Commander

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

About

FB2 Extract

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors