I have defined a fairly lengthy environment variable containing several binary folders, say %myBinaries%.

I'd like to append this to Windows' default path. However, in the GUI, setting:

path=%path%;%myBinaries%

leaves the last variable unexpanded, as 'set' in cmd.exe will show.

What is the preferred way of reliably resolving environment variables? I'd really like to avoid hardcoding the additional folder locations, for they might change.

link|improve this question
I am sorry, but I have never seen environment variables in the path environment variable. AFAIK path entries there always have to be hard-coded. – Robert Nov 7 '11 at 13:35
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.