View Single Post
Old 02-05-2010, 10:41 AM   #15
Laura81
Addict
Laura81 ought to be getting tired of karma fortunes by now.Laura81 ought to be getting tired of karma fortunes by now.Laura81 ought to be getting tired of karma fortunes by now.Laura81 ought to be getting tired of karma fortunes by now.Laura81 ought to be getting tired of karma fortunes by now.Laura81 ought to be getting tired of karma fortunes by now.Laura81 ought to be getting tired of karma fortunes by now.Laura81 ought to be getting tired of karma fortunes by now.Laura81 ought to be getting tired of karma fortunes by now.Laura81 ought to be getting tired of karma fortunes by now.Laura81 ought to be getting tired of karma fortunes by now.
 
Posts: 360
Karma: 407796
Join Date: Oct 2009
Location: Victoria, Australia
Device: Paperwhite 5
Sure! Here's the code. All credit goes to fellow member frabjous who wrote it. Be aware you need to have AbiWord and Calibre installed to use these codes.

For 64 bit operating system:

Code:
for %%I in (*.doc) do "C:\Program Files (x86)\AbiWord\bin\AbiWord.exe" --to=html "%%I"
for %%I in (*.html) do "C:\Program Files (x86)\Calibre2\ebook-convert.exe" "%%I" "%%~nI.epub"
For 32 bit operating system:

Code:
for %%I in (*.doc) do "C:\Program Files\AbiWord\bin\AbiWord.exe" --to=html "%%I"
for %%I in (*.html) do "C:\Program Files\Calibre2\ebook-convert.exe" "%%I" "%%~nI.epub"
Laura81 is offline   Reply With Quote