I want to execute a java program from a javascript and want to get the output.
Intailly i tried with below code:
WshShell = new ActiveXObject(\"WScri
Yes, that bother all wsh scripters. No way to hide wshExec
object, only .Run
allow this option, but no StdOut
in this case. Shortly, the only way is to redirect your output to file.
WshShell = new ActiveXObject("WScript.Shell");
var launch ="cmd.exe /c java -classpath . HelloWorld > output.txt";
var cmdRun = WshShell.Run(launch,0,true);