![]() |
#1 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Jan 2011
Location: Sydney, Australia
Device: Kindle
|
exit codes for command line apps
Hi All,
I have been messing around with windows command batch scripts and vbscripts to automate the retrieval of news recipes & having them emailed to my kindle. I think i am close to finalising a working vbscript but i just now need to incorporate some logging & error handling. Does anyone know (kovid are you out there?) if there is a way to trap exit codes for ebook-convert.exe & calibre-smtp.exe? Specifically when running these apps from within a vbscript. For example. i am running ebook.convert.exe using the following sample vbscript code... Set objProcess = GetObject("winmgmts:root\cimv2:Win32_Process") cmdConvert = "c:\program files\calibre2\ebook-convert.exe" & " c:\program files\calibre2\resources\recipes\the_oz.recipe " & "c:\temp\the_oz.mobi" & "--output-profile kindle" errReturn = objProcess.Create(cmdConvert, null, null, intProcessID) I am also monitoring the completion of the processid before moving on to calibre-smtp.exe. I would like to a) trap any exit code & b) log the .exe process to text file. Regards Nick |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
calibredb exit codes? | mcqueary | Calibre | 1 | 01-02-2011 11:56 AM |
Where are the command line tools? | PaulChernoch | Calibre | 17 | 10-23-2009 12:08 PM |
Why use the command line? | slantybard | Calibre | 6 | 07-22-2009 12:17 PM |
Going completely command-line? | ewiplayer | Calibre | 2 | 11-24-2008 05:15 AM |
Errors on Command Line | drnkusv | Calibre | 11 | 11-07-2008 02:59 PM |