Login  Register

Re: Run vbs file from ImageJ

Posted by dscho on Oct 31, 2008; 10:32pm
URL: http://imagej.273.s1.nabble.com/Run-vbs-file-from-ImageJ-tp3694600p3694601.html

Hi,

On Thu, 30 Oct 2008, Christophe Leterrier wrote:

> This question is for Windows people. I'd like to trigger the execution
> of a visual basic script from ImageJ in XP.

It seems that the only way to trigger this is by calling something like

        Runtime.getRuntime().exec("start script.vbs");

on DOS-based Windows (95, 98, ME) and

        Runtime.getRuntime().exec("cmd /c start script.vbs");

on VMS-based ones (NT, 2k, XP, Vista).

You cannot do that from a macro script, but you could use Javascript, or
write a plugin that has a public static method calling the exec() method.

Hth,
Dscho