小编jb_*_*ado的帖子

在 Windows 批处理文件中运行 bash 命令

是否可以在批处理脚本中运行msys bash 命令?假设我有一个.bat文件,其中有 Windows 批处理命令,并且在一行中我将切换到msys bash 来处理msys指定的命令。就像这样:

[...] 
batch commands 
[...]
C:\mingw\msys\1.0\bin\sh -l
mount 'C:\mingw\local32' /local32
[...] 
bash commands 
[...]
Run Code Online (Sandbox Code Playgroud)

感谢帮助!

jb_

bash shell cmd batch-file sh

3
推荐指数
1
解决办法
2万
查看次数

标签 统计

bash ×1

batch-file ×1

cmd ×1

sh ×1

shell ×1