我正在编写一个将启动 Apache 的批处理文件,并在 Web 浏览器中打开 http://localhost
。最简单的形式:
@start apache\bin\httpd.exe
@start http://localhost
这会导致批处理文件运行 Apache,打开网页,然后退出。但是,httpd.exe
在其自己的终端窗口中打开,而不是在后台隐藏打开。如何在没有可见窗口的情况下打开它?
最佳答案
试试这个:
@start /b "" apache\bin\httpd.exe
关于windows - 使用批处理文件在后台启动 Apache,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15605467/