FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
10-09-2023 09:54 AM - edited 10-09-2023 09:56 AM
Hi all,
i like to start a batchfile, that is located at the system that displaying the visualisation from webIQ server running at CtrlX PLC. Maybe by clickevent from Button.
For example:
192.168.1.1 -> CtrlX PLC and WebIQ Server
192.168.1.10 -> Win PC and HMI displayed with firefox and batchfile at local directory
Is it possible to start batchfile with robocopy command at WIN PC from HMI? (192.168.1.10)
Solved! Go to Solution.
10-09-2023 11:56 AM
For opening a browser from a Windows batch file please see here: https://stackoverflow.com/a/69124222/8005899
With a web browser you cannot execute any code on the browser's operating system (security!)
You could however use e.g. NodeJS to create a web server on the system you want to execute a system command on and implement this execution and then simply call the URL from the HMI. Please note however that anyone who knows the URL can then also execute the command on the system.