_NT appended to custom env variable for no apparent reason

L4ZZA's Avatar


24 Jun, 2020 08:09 AM

Here's my matrix defining some of the variables I will likely often change:

    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
      ROOT: c:\dev\source
      SCRIPTS: '%ROOT%\scripts'
      CONFIG: 'Release'
      OS: 'windows'
      PLAT: 'x86_64'
      PRODUCT_NAME: Ember

For some reason though, the system is appending "_NT" string to my %OS% path when I'm trying to concatenate it with other paths and that is preventing me to use the variable to compose the actual path I have to reach.


[00:05:55] echo %FILE_VERSION%
[00:05:55] v0.0.45-beta
[00:05:55] echo %OS%
[00:05:55] windows
[00:05:55] echo %CONFIG%-%OS%-%PLAT%
[00:05:55] Release-windows-x86_64
[00:05:55] echo %OUTPUT_FOLDER%
[00:05:55] bin\Release-Windows_NT-x86_64
[00:05:55] echo %ROOT%\%OUTPUT_FOLDER%
[00:05:55] c:\dev\source\bin\Release-Windows_NT-x86_64
[00:05:55] ren  %OUTPUT_FOLDER%\installers\%PRODUCT_NAME%Setup.exe "%PRODUCT_NAME%-%FILE_VERSION% setup.exe"
[00:05:56] The system cannot find the path specified.
[00:05:56] Command exited with code 1

Does anyone have a solution for this that is not to hard-code "windows" everywhere?

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac