Hello,
Is it any possibility to run a system command inside a jarchi script, like invoking an external program ?
Thanks
Dear all - I'm also looking for an answer to this. Can I call a .exe file on a Windows system directly from an Archi script? Kind regards, Thomas.
Hi,
Short answer: no
Long answer: jArchi doesn't expose this feature through its API, but jArchi is based on Nashorn which is a JAVA based implementation of Javascript with some extensions. One of these extensions is the ability to use Java classes from JS, so it should be possible to run a system command through Java through JS.
Regards,
JB
// Launch Notepad on Windows from a jArchi script
var runtime = Java.type("java.lang.Runtime").getRuntime();
runtime.exec("notepad.exe");