tag:help.appveyor.com,2012-11-13:/discussions/problems/18760-appveyor-is-not-recognized-as-an-internal-or-external-command-operable-program-or-batch-fileAppVeyor: Discussion 2019-02-24T21:00:25Ztag:help.appveyor.com,2012-11-13:Comment/467070922018-12-24T02:26:57Z2018-12-24T02:26:58Z'appveyor' is not recognized as an internal or external command, operable program or batch file<div><p>I'm running a Python-based build system on appveyor.</p>
<p><code>image: Visual Studio 2017</code></p>
<p>I'm configuring options through YAML (not GUI).</p>
<p><a href="https://ci.appveyor.com/project/jimbo1qaz/corrscope/builds/21208446/job/q8g4fve45yjuanp6">https://ci.appveyor.com/project/jimbo1qaz/corrscope/builds/21208446...</a></p>
<p>When I try to run: <code>if not "%pydir%"=="C:\Python36" appveyor exit</code>, I get an error:<br>
<code>'appveyor' is not recognized as an internal or external command, operable program or batch file.</code></p>
<p><code>appveyor.exe</code> is located in <code>C:\Program Files\AppVeyor\BuildAgent\</code>, which is the final PATH entry in a fresh Appveyor install. are cut off somehow when I append new entries? It seems to happen or not randomly/</p>
<p>Works here with a near-identical config: <a href="https://ci.appveyor.com/project/jimbo1qaz/corrscope/builds/21208826/job/orqlmg21d1gjqu35#L57">https://ci.appveyor.com/project/jimbo1qaz/corrscope/builds/21208826...</a></p></div>jimbo1qaztag:help.appveyor.com,2012-11-13:Comment/467070922018-12-24T19:57:32Z2018-12-24T19:57:32Z'appveyor' is not recognized as an internal or external command, operable program or batch file<div><p>Seems like you <a href="https://github.com/jimbo1qaz/corrscope/commit/2a474d0c06cfc2d2431103d63ae68ef4d972b8a4">fixed</a> it, right ;)</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/467070922018-12-24T20:56:22Z2018-12-24T20:56:22Z'appveyor' is not recognized as an internal or external command, operable program or batch file<div><p>I think calling <code>refreshenv</code> breaks <code>appveyor</code>. <code>appveyor</code> is also missing from RDP.</p></div>jimbo1qaztag:help.appveyor.com,2012-11-13:Comment/467070922018-12-24T22:47:07Z2018-12-24T22:47:07Z'appveyor' is not recognized as an internal or external command, operable program or batch file<div><p>RDP is not good way to test it. Environment variables (including <code>path</code>) are in RDP are not the same as in the build session.</p></div>Ilya Finkelshteyn