ERRORLEVEL by texify
"Daniele Giorgio Degiorgi" <[email protected]>
| Newsgroups | gmane.comp.tex.miktex |
|---|---|
| Message-ID | <[email protected]> |
Hi, I try to use following cmd file to generate a full recompilation rem @echo off rem %1 directory, %2 tex name, %3 dir name cd K:/_BookList/Years/%1 texify --pdf %2.tex <F:\texinp.txt >texify.log if NOT ERRORLEVEL 0 goto lab1 MOVE %2.pdf M:\_Library\%3 goto lab2 :lab1 echo %1/%2 failed :lab2 Where the file F:\texinp.txt just contains an x to quit. If texify succeed, the generated pdf will be moved, but if it does not succeed, it still returns errorlevel 0, while writing Sorry, but texify did not succeed. The log file hopefully contains the information to get MiKTeX going again: C:/Users/Daniele/AppData/Local/MiKTeX/2.9/miktex/log/texify.log You may want to visit the MiKTeX project page, if you need help. Is there a way to let texify set a non zero errorlevel in case of errors? I tried to use --quiet instead of redirecting output, but still errorlevel is set to 0 even in case of errors. Many thanks for any hints, Daniel ------------------------------------------------------------------------------ _______________________________________________ Q: How can I leave the mailing list? A: See http://docs.miktex.org/faq/support.html#leavingml