Search code examples
phpcommand-linewindows-server-2008

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?


Solution

  • You can use exec() for that.