Toli2017
Toli2017

Reputation: 47

Executing multiple .bat or .exe files

I am using PHP Desktop to turn my web app into "desktop app". Is it possible and if it is how can I execute multiple .bat or .exe files after executing the main .exe file? Also is it possible to execute .bat or .exe file with button using JavaScript?

Upvotes: -1

Views: 204

Answers (1)

Czarek Tomczak
Czarek Tomczak

Reputation: 20675

You can use PHP functions like system() to execute any command.

There is also a "nircmd" tool that has many options including options to execute programs asynchronously. See:

https://github.com/cztomczak/phpdesktop/wiki/Knowledge-Base#how-do-i-call-external-programs-or-commands-asynchronously-in-background-without-waiting-for-them-to-end

If you want to execute program with js then just make an AJAX call to a PHP script.

Upvotes: 0

Related Questions