View Single Post
Old 03-30-2011, 07:51 PM   #1
euleralves
Junior Member
euleralves began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Mar 2011
Device: Kindle 3
Lightbulb Windows batch file to test, debug and develop recipes

Drag a recipe file to this Windows batch and you can debug the output of recipe.

This help you to build your recipes.

Code:
@echo off
if not exist "%~dp1%~n1" md "%~dp1%~n1"
if exist "%~dp1%~n1\%~n1.recipe" del /q "%~dp1%~n1\%~n1.recipe"
copy %1 "%~dp1%~n1\%~n1.recipe"
start "Calibre RSS" /wait /b "%ProgramFiles%\Calibre2\ebook-convert.exe" "%~dp1%~n1\%~n1.recipe" "%~dp1%~n1" --test -vv
echo Wait a while even after the message to press enter. The Caliber will start.
pause
Attached Files
File Type: bat Recipe test.bat (358 Bytes, 58 views)
euleralves is offline   Reply With Quote