About execute cmd.exe

I want to open a CMD window.

It works fine in the 'script console', but when I place the code in other events like onclick or gateway events, the CMD window does not appear.

Designer is running on your local PC.
Gateway is running on the gateway computer so you are trying to open a CMD window on it.

Browser security would never allow a script to open a CMD window and execute command line code.

Not only CMD but also executing other files shows the same symptom
then how can i do it?
i want to run a .bat file

is this bat file on the gateway?

If you want your user interface to be able to interact with the operating system of the client PC then you need to use Vision, not Perspective. This is deliberate policy by the browser standards, not by Ignition. Any way to bypass this would be quickly exploited by malware sites.

5 Likes

Well installing an uri on clients is still an option. If you somehow choose perspective and need to do something on a local pc

3 Likes