Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I run MinGW with a script?

Is there a way to run MinGW, from msys.bat or any other method, from a batch file and input a .sh file for it to run?

like image 603
b3bel Avatar asked May 20 '12 07:05

b3bel


People also ask

What is the difference between MinGW and MinGW-w64?

MinGW-w64 is a improved version which supports both 32bit and 64bit, and some more of the WinAPI (still not all, because thats much work, but more than MinGW). MinGW-w64 only provides their source code, but no binaries to "just use" the compiler.

Is MinGW a compiler?

MinGW is a compiler system based on the GNU GCC and Binutils projects that compiles and links code to be run on Win32 (Windows) systems. It provides C, C++ and Fortran compilers plus other related tools. 'MinGW' refers to the "Minimalist GNU for Windows" project.

How do I add MinGW to path in Windows 10?

In the Windows search bar, type 'settings' to open your Windows Settings. Search for Edit environment variables for your account. Choose the Path variable in your User variables and then select Edit. Select New and add the Mingw-w64 destination folder path to the system path.

What is the difference between Msys and MinGW?

The MinGW-w64 Win32 Shell is very similar to the MSYS2 Shell. The main difference is that "/mingw32/bin" is prepended to the path, and a few other environment variables are adjusted as well. You can see all the differences in the two shells by looking at the use of the MSYSTEM variable in /etc/profile.


1 Answers

Batch file like this

C:\MinGW\msys\1.0\bin\sh ~/test.sh
pause
like image 106
Zombo Avatar answered Sep 25 '22 02:09

Zombo