Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经尝试了一段时间我可能知道的所有方法,但还没有破解这个东西,它可能非常微不足道,但找不到答案。
例如,我想使用 php shell_exec 一次运行多个命令,shell_exec("cd ..; dir") 但我无法找到如何执行几个命令,分隔符是什么?是吗;是/n吗?似乎没有任何效果。
shell_exec("cd ..; dir")
请注意我正在使用 Windows 运行。
https://superuser.com/a/62854
&&如果命令 1 没有失败,&将在命令 1 完成时执行命令 2,无论如何都会执行。
&&
&