Windows environment variables not recognized
<p>I'm trying to set some windows environment variables. But for some reason after saving my variable it still can't be used in cmd.</p>

<p>For example PHP:
<a href="https://i.stack.imgur.com/jQElw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jQElw.png" alt="php environment variable"></a></p>

<p>The error I keep getting:</p>

<p><code>'D:\xampp\php\' is not recognized as an internal or external command, operable 
program or batch file.</code></p>

<p>I used the Browse File... button to select the <code>php.exe</code> application just to make sure I didn't make any typos. Also I tried to change the value to <code>D:\xampp\php\</code> this didn't work either.</p>

<p>Restarting windows didn't help. Also typing just <code>D:\xampp\php\php.exe</code> works fine.</p>

<p>Does anyone have an idea what I'm doing wrong here?</p>