title: ‘ant’ is not recognized as an internal or external command
body: <p>I have the same issue as this user: <a href="https://stackoverflow.com/questions/1587172/ant-not-recognized-as-an-internal">ant - not recognized as an internal</a> </p>
  
  <p>however unfortunately none of the solutions have worked for me in that post or any other. I've also looked at other commands not recognized and specifically adding a path variable. The procedure I am using is as follows:</p>
  
  <pre><code>Extract to a desired installation directory, e.g. C:\apache-ant
  Create an ANT_HOME environment variable`
  
  Open System Properties -&gt; Advanced -&gt; Environment Variables
  Create a new system variable
      Variable name: ANT_HOME
      Variable value: C:\apache-ant 
  
  Add %ANT_HOME%\bin directory to the PATH system variable
  
  Open System Properties -&gt; Advanced -&gt; Environment Variables
  Under system variables, select PATH and append ;%ANT_HOME%\bin
      e.g. %SystemRoot%\system32;%SystemRoot%;%JAVA_HOME%\bin;%ANT_HOME%\bin
  
  Verify that ANT is installed.
  
  Open a new command window and type:
  C:\&gt;ant -v`
  </code></pre>
  
  <p>In my case the Variable value is <code>C:\apache-ant\apache-ant-1.8.2</code>. </p>
  
  <p>My exact path variable is <code>%SystemRoot%\system32;%SystemRoot%;%JAVA_HOME%\bin;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;%JAVA_HOME%\bin;%ANT_HOME%\bin</code> which doesn't have any spaces between semicolons.</p>
  
  <p>However testing the ant installation does not work, the picture below is what I'm experiencing: </p>
  
  <p><img src="https://i.stack.imgur.com/fHG6l.png" alt="enter image description here"></p>
  
  <p>I have tried restarting on numerous occasions to no avail. I have run out of ideas, so if anyone has any any information would be helpful. Thanks!</p>
  
  <h2>EDIT</h2>
  
  <p>Posted results of dir: </p>
  
  <p><img src="https://i.stack.imgur.com/KsN7T.png" alt="enter image description here"></p>