I'm looking to see if there's a formal/proper way to run a Powershell script on server-side from a client Java Applet?
Powershell offers some great stuff, and up until now I've been using just a PHP form to execute the scripts but it causes funny behaviour with the Applet (for example running the destroy() portion of the Applet).
Also, a return from the Powershell would be great to display in the Applet. Cheers.
Perhaps, use System.Management.Automation and JNI4Net for bindings? Because interacting with powershell.exe
via console redirection is error-prone.
More info: A JSR223 implementation for Powershell, using JNI4Net for bindings .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.