How to run batch or executable files from our apps


Ava Rashidi

Hello David,

I have a batch file, I need run this in AB.

How can run .bat or .exe file in AB?

Tanks


DecSoft

Hello Ava,

I am not sure if can understand... do you want to execute a BAT or EXE file from an AB app? If so, probably there is no way to do something like that due to security risks, except if an Apache Cordova plugin to do that exists... but maybe even an Apache Cordova plugin can't do something like that, because the Windows platform do not allow something like that.



Ava Rashidi

Hello David,

yes, I wanted move one file from one directory to another directory, in AB an JS I could not do it but with bat file it worked.

So, I decided called my bat file.

Thanks for your reply


DecSoft

Hello Ava,

If I am not wrong, we are talking about the Windows platform. Certainly, it's something common to execute executables and batch files in Windows, however, not from our hybrid apps. The only way to do something like that is try to find an Apache Cordova plugin that doing that... but I am not quite sure if the platform allows something like that for hybrid apps. It's possible... but I can't refer here any know plugin.

P.S. Apache Cordova allows to develop our own plugins, however, probably this is out of the scope here.



Ava Rashidi

Hello David,

Thank you for sharing your wisdom with me.

Todo el mundo puede leer el foro de soporte de DecSoft para aprender del mismo, sin embargo, sólo los clientes de DecSoft pueden abrir nuevos hilos. Compre una o más licencias de productos de DecSoft y obtendrá este y otros beneficios.

Este sitio utiliza "cookies" útiles para almacenar sus preferencias.

Bien. Ocultar esta nota. Obtener más información.