0

In Windows the path environment variable can refer to other environment variables:

Environment variable referencing other environment variables

However, if I update the path from the command line using SETX, those variables are dereferenced:

setx path %path%

Variable refrerences have been replaced with actual paths

Is there a way to set an environment variable from the command line that allows these references to other variables?

2
  • This will be a good place to start reading: superuser.com/questions/916649/… Commented Feb 21, 2019 at 20:25
  • @music2myear Thank you for the link but my question is about referencing an environment variable inside another, from the command line, which your link doesn't touch on. Commented Feb 21, 2019 at 20:32

0

You must log in to answer this question.

Browse other questions tagged .