@echo off
:Begins
echo Do you seek:
echo  1) Abaddon Trilogy: Provoker
echo  2) Nocturnal Whispers: Vol.I
echo  3) alpha.InspirationalAgony.*
echo  4) Abaddon Trilogy: Seducer
echo  5) discordant thots
echo  x) eXit
set VOL=
set /p OPT=
if [%OPT%]==[1] set VOL=Provoker
if [%OPT%]==[2] set VOL=NW1
if [%OPT%]==[3] set VOL=alpha
if [%OPT%]==[4] set VOL=Seducer
if [%OPT%]==[5] set VOL=discord
if [%VOL%]==[] goto Ends
set DIR=q:\poho\%VOL%
set TOC=ebook\OEBPS
cd /d %DIR%
:Again
cls
set WAS=
REM ebook'em.bat [v0.15] by silent.ponderhouse.com
for %%Q in (gbook kindle smash promo none) do if exist %%Q set WAS=%%Q
if [%WAS%]==[] echo Error: id10t. No data. & pause & goto Ends
echo Is: %VOL%.%WAS%
echo Do you require:
echo  1) gbook
echo  2) kindle
echo  3) smash
echo  p) promo
echo  n) no format
echo  e) ePubPack: %WAS%
echo  x) eXit
set NOW=
set /p OPT=
if [%OPT%]==[1] set NOW=gbook
if [%OPT%]==[2] set NOW=kindle
if [%OPT%]==[3] set NOW=smash
if /i [%OPT%]==[p] set NOW=promo
if /i [%OPT%]==[n] set NOW=none
if /i [%OPT%]==[e] goto Gener8
if /i [%OPT%]==[q] cls & goto Begins
if [%NOW%]==[%WAS%] goto Again
if [%NOW%]==[] goto Ends
:Before
if [%WAS%]==[none] goto Become
move %TOC%\%VOL%.ncx %WAS%\%VOL%.%WAS%.ncx>nul
move %TOC%\%VOL%.opf %WAS%\%VOL%.%WAS%.opf>nul
move %TOC%\Styles\%VOL%.css %WAS%\%VOL%.%WAS%.css>nul
move %TOC%\Images\%VOL%.cover.png %WAS%\%VOL%.%WAS%.cover.png>nul
move %TOC%\Text\%VOL%.title.html %WAS%\%VOL%.%WAS%.title.html>nul
move %TOC%\Text\%VOL%.legal.html %WAS%\%VOL%.%WAS%.legal.html>nul
:Become
ren %WAS% %NOW%
if [%NOW%]==[none] goto Again
move %NOW%\%VOL%.%NOW%.ncx %TOC%\%VOL%.ncx>nul
move %NOW%\%VOL%.%NOW%.opf %TOC%\%VOL%.opf>nul
move %NOW%\%VOL%.%NOW%.css %TOC%\Styles\%VOL%.css>nul
move %NOW%\%VOL%.%NOW%.cover.png %TOC%\Images\%VOL%.cover.png>nul
move %NOW%\%VOL%.%NOW%.title.html %TOC%\Text\%VOL%.title.html>nul
move %NOW%\%VOL%.%NOW%.legal.html %TOC%\Text\%VOL%.legal.html>nul
goto Again
:Gener8
ePubPack.exe %DIR%\ebook\mimetype
goto Again
:Ends