小编Kei*_*ith的帖子

如何制作启动 Bash 并运行命令的 Windows 快捷方式?

我创建了一个 Windows 快捷方式,其目标看起来像

"C:\Windows\System32\bash.exe" php /c/script.php

(我知道我可以使用我的 php cli 的 Windows 版本来运行它,但出于好奇)

当我单击我的快捷方式时,它只是弹出一个 cmd 窗口并关闭(脚本应该需要几分钟才能运行。

有没有办法将命令通过管道传输到 Windows 上的 bash.exe?

windows bash shortcuts cmd.exe windows-subsystem-for-linux

8
推荐指数
2
解决办法
6858
查看次数