Environmental Variables defined with other Environmental Variables?

a_unique_name 401 Reputation points
2021-12-15T00:18:35.42+00:00

Hello folks:

I'm using Windows 10.

I have an environmental variable, UTILITIES_PATH, that identifies a folder with, among other things, property sheets used by Visual Studio.

Now I want an environmental variable to identify the property sheets directory.

Attempts to define an environmental variable PROPERTY_SHEETS_PATH to %UTILITIES_PATH%\code\property_sheets doesn't seem to work.

It seems the problem is having an environmental variable that has another environmental variable in it's definition.

Is there a way around this limitation?

I'm using the Environmental Variables window child of the System Properties window to set the variable.

The tag below is useless. No tag related to this question seems to be allowed.

Thanks
Larry

Windows for business | Windows Client for IT Pros | User experience | Other
0 comments No comments
{count} votes

Accepted answer
  1. Anonymous
    2021-12-15T00:53:02.967+00:00

    Some possibilities here.
    https://stackoverflow.com/questions/3594846/limits-on-windows-environment-variable-nesting

    --please don't forget to upvote and Accept as answer if the reply is helpful--

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. a_unique_name 401 Reputation points
    2021-12-15T02:38:20.863+00:00

    Thanks DSPatrick:

    So I can't do this unless I change one or both of the environmental variable names so the property path variable's name follows the utility path's name?

    I appreciate you letting me know. I don't appreciate Windows.

    Larry


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.