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.

Everybody can read the DecSoft support forum for learning purposes, however only DecSoft customers can post new threads. Purchase one or more licenses of some DecSoft products in order to give this and other benefits.

This website uses some useful cookies to store your preferences.

I agree. Hide this note. Give me more information.