【发布时间】:2018-04-10 04:06:15
【问题描述】:
我不确定如何在 Windows 10 的 shell 脚本中运行 aps.bat 命令。
我尝试了几种不同的方法,但没有成功,我没有更多细节。
请看下面的代码:
#!/bin/bash
output = aps.bat build $PWD;
# do some work...
echo "$output";
基本上,我需要执行aps.bat 命令并将输出存储到变量中。
【问题讨论】:
-
在 bash 上执行批处理脚本?为什么不直接将其移植到 bash 脚本?
标签: windows shell batch-file windows-subsystem-for-linux