kieran kieran - 5 months ago 37
PHP Question

Sending commands to windows command line (cmd) from PHP

Is this possible?

What I want to do is send:

run_app.exe -param 'test' -name 'tester'

to a windows cmd line from PHP.

Is this possible or do I need to write a windows service that is somehow triggered by the application?


You can use exec() for that.