Login  Register

Execute Windows cmd commands within macro language

Posted by JAMES, gregory (SANDWELL AND WEST BIRMINGHAM HOSPITALS NHS TRUST) on Oct 26, 2017; 11:25am
URL: http://imagej.273.s1.nabble.com/Execute-Windows-cmd-commands-within-macro-language-tp5019610.html

Dear ImageJ mailing list.

I would like to execute two lines of Windows cmd commands within the macro language.

Specifically, I want to execute the following two commands...

cd C:Program Files\ImageJ\plugins\CHT Clinical Programs\DICOM Export
storescu -v 10.139.228.187 104 C:\_Temp\SecondaryCapture.dcm -aec XELERIS3

At the moment I am executing these commands with a .bat file that sits on my desktop but it would be great if I could do this within the macro language.

There must be a way of doing this using the built-in in macro function... exec(string or strings)... but I'm struggling.

Can anybody help?

Thanks,

Greg (Birmingham, UK)

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html