Login  Register

Re: exec("cmd") does not open the command window for me in XP...

Posted by Michael Schmid on May 07, 2009; 4:51pm
URL: http://imagej.273.s1.nabble.com/exec-cmd-does-not-open-the-command-window-for-me-in-XP-tp3692634p3692635.html

Hi,

On Windows, note that you may need a "cmd", see the examples at
   http://rsb.info.nih.gov/ij/macros/ExecExamples.txt
To get the user input it might be easier to have the C program read  
the input from a file or from the args (i.e., have ImageJ ask for the  
input and pass it to the program in a file or the command line).

Michael
________________________________________________________________

On 7 May 2009, at 17:59, macroexec wrote:

> Hi all,
>
> I am trying to run an exe program (that is written in C, and runs  
> from the
> command line) from a macro, but I can't seem to bring the DOS command
> prompt/window up.
>
> I know others have gotten the exec() function to work, but I can't  
> figure
> out how. Could it be a problem with my .exe? It is a C program that  
> asks for
> user input (uses the default DOS command window for the dialog) and  
> prints
> output to a file.
>
> Thanks very much!