从PHP发送命令到Windows命令行(cmd) [英] Sending commands to windows command line (cmd) from PHP

查看:73
本文介绍了从PHP发送命令到Windows命令行(cmd)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这可能吗?

我要发送的是

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

从PHP到Windows cmd行.

to a windows cmd line from PHP.

这是可能的还是我需要编写一个由应用程序触发的Windows服务?

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

推荐答案

您可以使用 exec().

这篇关于从PHP发送命令到Windows命令行(cmd)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆