Quote:
Originally Posted by Doitsu
That's very easy. You simply omit the KindleGen part, change the file selector to .mobi and end up with this very simple script.
Code:
DEL conversion.log
FOR %%f IN ("*.mobi") DO (
ECHO ******************************* >> conversion.log
kindlestrip "%%~nf.mobi" "%%~nf.new" >> conversion.log
IF EXIST "%%~nf.new" (
DEL "%%~nf.mobi"
REN "%%~nf.new" "%%~nf.mobi"
) ELSE (
ECHO "%%~nf.mobi" was NOT stripped! >> conversion.log
)
)
Hopefully, none of the "real programmers" will see this, because it's a quick & dirty solution that doesn't follow the traditional programming guidelines.
BTW, as with the other batch file there's always the possibility that something might go horribly wrong.
Always keep backups and don't use it with the original files.
|
Thank you very much Doitsu!!