Re: Run dos batch file from macro
Posted by
andyg2 on
URL: http://imagej.273.s1.nabble.com/Run-dos-batch-file-from-macro-tp3686469p3686470.html
Thanks for the info.
I'm very new to this and still struggling. I've been trying to implement the java here:
http://hi.baidu.com/1zebra/blog/item/34ae743ee661f73a71cf6c4d.html with no luck at all but ideally I'd like a macro as I'd like to add it to an existing macro.
As I'm just testing for a rough word count, I could use the return code (0-255 batch errorlevel) for returning the count in number of binary bits needed to hold the number. This I think, would ensure program termination and pass the needed data to ImageJ - for deciding what to do with the image.
Is there a way to do that in a macro? Or if not, how can I call a class from a macro and get the return code from that?
Some code would be great but any further pointers also very helpful.
Thanks again