title: Invoking MSYS bash from Windows cmd
body: <p>I'm using GCC on Windows&nbsp;7 (using the TDM's build). I installed MSYS to be able to execute <a href="http://en.wikipedia.org/wiki/Make_%28software%29" rel="noreferrer">Make</a> and compile using makefiles. However, it is tedious to every time start up the MSYS <a href="http://en.wikipedia.org/wiki/Bash_%28Unix_shell%29" rel="noreferrer">Bash</a> shell, navigate to the directory of the project and run <code>make</code>.</p>
  
  <p>What I want is to automate this process. I prefer to have a batch file in Windows, or something similar, from which I then invoke the MSYS Bash shell. It should navigate to the directory the batch file resides in and call <code>make</code>.</p>
  
  <p>Is this possible? Can I send commands to MSYS Bash from cmd (like navigation/invoking <code>make</code>)? Or can I let the MSYS Bash run a "Bash script", which sets the commands to be executed much like batch scripts?</p>
  
  <p>PS: This is something similar to Stack Overflow question <em><a href="https://stackoverflow.com/questions/2546757">Executing MSYS from cmd.exe with arguments</a></em>.</p>