我如何在Windows中启动新的PHP实例而不打开新的CMD窗口? [英] How do I start a new instance of PHP in Windows without it opening a new CMD window?

查看:92
本文介绍了我如何在Windows中启动新的PHP实例而不打开新的CMD窗口?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望多个PHP进程在后台运行,而不会打扰用户.这是我的代码:

I want multiple PHP processes to run in the background without disturbing the user. This is the code I have:

exec("psexec -d php peak.php map/eline/updatedotrange first=$first last=$last filename=$filename > NUL 2> NUL");

但是对于每个exec语句,都会弹出一个新的CMD.当我循环100次并运行这条线时,这对我来说简直是毁了.

But for every exec statement, a new CMD pops up. This kinda ruins it for me when I'm looping 100 times and running that line.

有什么方法可以让流程在后台运行,而无需用户注意?

Any way I can get the process to run in the background, without the user noticing?

推荐答案

我使用bgrun.exe

http://www.jukkis.net/bgrun/

如果有人知道100%本机Windows方式可以做到这一点,我将不知道

If anyone knows a 100% native Windows way to do this I'd die to know

这篇关于我如何在Windows中启动新的PHP实例而不打开新的CMD窗口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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