我有文件 php 脚本run.php
:
#!/usr/bin/php
<?php
$typeTest = $argv[1];
`aaa.bat $typeTest`;
?>
和批处理文件aaa.bat
@echo off
set a=%1
echo %a%
但是,当php run.php string_here
在命令行窗口上运行时会出错
'@echo' is not recognized as an internal or external command,
operable program or batch file.