Logic Machine Forum
Execute external Windows program - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: Execute external Windows program (/showthread.php?tid=2534)



Execute external Windows program - Daponte - 22.03.2020

Hi,

I have a logicmachine SCADA running on windows and I needed to create a button that runs a windowus program, could someone help me with some script?


RE: EXECUTE EXTERNAL WINDOWS PROGRAM - Erwin van der Zwart - 22.03.2020

Hi,

Due to security risks it’s impossible to trigger a Windows application from a browser. Luckely (:

To achieve what you want you need a middleware solution.

I have created a executable that runs as a service that listen to TCP messages and can start application from there. In that scenario you can send a TCP message from the controller to the middleware and do what you want. This require some knowledge in Visual Studio (C#)..

BR,

Erwin


RE: EXECUTE EXTERNAL WINDOWS PROGRAM - Daponte - 23.03.2020

Thanks, very much..