我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

当我从.php执行批处理文件时,如何在前台实际打开Windows命令行并查看整个过程

I am going crazy trying to find how how i can start batch file from PHP script in the foreground. By Foreground i mean, to actually start cmd Windows and see the entire process. I don't even need to pass anything to this batch file, just simulate as if you have double-clicked on the batch file from php webpage. Please help.

try

<?php
system("cmd /c [path to file]");
?>

OR try

<?php
exec("[path to file]");
?>

近期文章

  • 如何在joomla模块中检索和显示数据的结果集。
  • 我可以上传一个CSV文件,它可以通过相同的id.with PHP上传所有MySQL存在的数据
  • Magento展示多种单一产品
  • 使用PHP函数验证表单
  • facebook注销只从网站注销而不是从facebook?
  • 帮助php和ruby on rails共存
  • 无法使用路由系统显示php错误
  • 在jscrollpane中,滚动不起作用
  • 无法从此php表单获取电子邮件
  • 将数据从/ dev / urandom转换为十六进制
  • 如何更改smarty中的分页设置?
  • 电子邮件不发送,PHP和SwiftMailer
  • 按钮单击以进行电子邮件验证未打开新窗口
  • MAMP显示php错误但没有警告
  • 使用preg_match_all提取网页上的所有图像链接
  • Prestashop通过产品搜索从页面和类别中进行搜索
  • 必填字段javascript将php中的下拉标签视为选定选项
  • Apache Rewrite Rule新手
  • phpbb3和facebook登出代码
  • PHP foreach循环外循环

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华