PHP不使用exec执行批处理文件

时间:2016-01-19 05:25:44

标签: php batch-file

我正在尝试在PHP中执行命令

这是命令

c:\WINDOWS\system32\cmd.exe /b START C:\xampp2\htdocs\barcodeprinting\test\printbarcode.bat

我也尝试过其他命令,比如

system('cmd /c C:\xampp2\htdocs\barcodeprinting\test\printbarcode.bat');
shell_exec('c:\WINDOWS\system32\cmd.exe /b START C:\xampp2\htdocs\barcodeprinting\test\printbarcode.bat');


$command = "C:\xampp2\htdocs\barcodeprinting\test\printbarcode.bat";
pclose(popen("start /B ". $command, "r"));

仍然没有运气来解决这个问题。

我正在使用XAMPP 1.8.2使用管理员帐户Windows XP我已经检查了 与Apache的services.msc中的计算机进行交互。

我不知道该怎么办我被困在这里。请帮助我谢谢!

0 个答案:

没有答案