title: 'mvn' is not recognized as an internal or external command, operable program or batch file error in Windows 10
body: <p>I have read similar questions about this problem but it is not working anyways.</p>
  <p><strong>I've extracted maven 3.3.3 to D:\Maven (Java already installed and works fine) then added 2 system variables:</strong></p>
  <div class="s-table-container">
  <table class="s-table">
  <thead>
  <tr>
  <th>Variable</th>
  <th>Value</th>
  </tr>
  </thead>
  <tbody>
  <tr>
  <td><code>M2</code></td>
  <td><code>%M2_HOME%\bin</code></td>
  </tr>
  <tr>
  <td><code>M2_HOME</code></td>
  <td><code>D:\Maven</code></td>
  </tr>
  </tbody>
  </table>
  </div>
  <p><strong>I've also appended next in the path:</strong></p>
  <p><code>%M2%</code></p>
  <p>But it is still not working.</p>
  <p>I can execute <code>mvn -version</code> from the <code>D:\Maven\bin</code> but can't do this from another directory.</p>