PHP启动windows应用程序、执行bat批处理、执行cmd命令的方法(exec、system函数详解) exec或者system都可以调用cmd的命令直接上代码:<?php/**打开windows的计算器*/exec('startC:Wind 执行cmd命令