Renaming an .epub based on a PDF file

I have a folder with an .epub and a .pdf of an ebook. It’s two versions of the same book. The PDF has a Title while the .epub doesn’t. I can rename the PDF based on the title in the PDF.
However I can’t solve the following two problems:
1. How can rename the .epub with the same title from the PDF?
2. Also I would like to rename the folder containing the PDF and ePub as well, with the same Title from the PDF.
How can I accomplish this?
P.S. Publisher 1 and Publisher 2 are just placeholders for names of potential publishers, to identify the books as e-books and not manuals.
See the attached photo - I don't know where to go from there:
http://cl.ly/image/103c0X0v2i0H
However I can’t solve the following two problems:
1. How can rename the .epub with the same title from the PDF?
2. Also I would like to rename the folder containing the PDF and ePub as well, with the same Title from the PDF.
How can I accomplish this?
P.S. Publisher 1 and Publisher 2 are just placeholders for names of potential publishers, to identify the books as e-books and not manuals.
See the attached photo - I don't know where to go from there:
http://cl.ly/image/103c0X0v2i0H