Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

How can I run a batch-file uder windows git-bash console. When I run it I get:

user@DESKTOP-DF012sh MINGW64 /c/project-folder 
$ util.bat 
bash: util.bat: command not found
like image 705
rozerro Avatar asked Oct 23 '25 09:10

rozerro


1 Answers

It should work if you mention where the bat is.

./util.bat

By default, a $PATH does not include the current folder.

I just tested executing a .bat script that way, and it worked just fine.

like image 164
VonC Avatar answered Oct 26 '25 00:10

VonC



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!