kieran kieran - 1 year ago 121
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?

Answer Source

You can use exec() for that.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download