我如何在 windows git-bash 控制台下 运行 批处理文件?

How can I run a batch-file under windows git-bash console?

如何在 windows git-bash 控制台上 运行 批处理文件。 当我 运行 我得到:

user@DESKTOP-DF012sh MINGW64 /c/project-folder 
$ util.bat 
bash: util.bat: command not found

如果你提到 蝙蝠所在的位置,它应该会起作用。

./util.bat

默认情况下,$PATH不包括当前文件夹。

我刚刚测试了以这种方式执行 .bat 脚本,它工作得很好。