Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MSysGit - run bat files directly

I installed new version of MSysGit and now I am not able to run *.bat files directly from command line("called MINGW64").

I try to search it, but I only saw options which needs run cmd first. Out of a git console: how do I execute a batch file and then return to git console? cmd "/C clean.bat"

Is there some option to just run the clean.bat?

Thank you very much


I solve that by updating all libraries... Maybe Cygwin? I am not sure, but update all your software and it works.

like image 557
Manic Depression Avatar asked Oct 24 '15 05:10

Manic Depression


People also ask

How do I run a batch file without closing a window?

If you're creating a batch file and want the MS-DOS window to remain open, add PAUSE to the end of your batch file. This prompts the user to Press any key. Until the user presses any key, the window remains open instead of closing automatically.


1 Answers

Try this from MINGW command line

$ cmd <test.bat
like image 53
Guest77734 Avatar answered Sep 30 '22 17:09

Guest77734