通过php启动.bat文件

问题描述 投票:0回答:0

我正在使用

system('START C:\[address]\refresh.bat');
但当我开始这个时,我得到:

C:\[address]>git fetch
'git' is not recognized as an internal or external command,
operable program or batch file. 

如何解决这个问题?

我尝试了 shell_exec 并添加到 PATH

C:\Program Files\Gi

php git batch-file cmd exec
© www.soinside.com 2019 - 2024. All rights reserved.